public class CacheEventQueue<K,V> extends PooledCacheEventQueue<K,V>
AbstractCacheEventQueue.AbstractCacheEvent, AbstractCacheEventQueue.DisposeEvent, AbstractCacheEventQueue.PutEvent, AbstractCacheEventQueue.RemoveAllEvent, AbstractCacheEventQueue.RemoveEventICacheEventQueue.QueueTypepool, queueDEFAULT_WAIT_TO_DIE_MILLIS| Constructor and Description |
|---|
CacheEventQueue(ICacheListener<K,V> listener,
long listenerId,
String cacheName)
Constructs with the specified listener and the cache name.
|
CacheEventQueue(ICacheListener<K,V> listener,
long listenerId,
String cacheName,
int maxFailure,
int waitBeforeRetry)
Constructor for the CacheEventQueue object
|
| Modifier and Type | Method and Description |
|---|---|
ICacheEventQueue.QueueType |
getQueueType()
What type of queue is this.
|
protected void |
initialize(ICacheListener<K,V> listener,
long listenerId,
String cacheName,
int maxFailure,
int waitBeforeRetry,
String threadPoolName)
Initializes the queue.
|
destroy, getStatistics, isEmpty, put, sizeaddDisposeEvent, addPutEvent, addRemoveAllEvent, addRemoveEvent, getCacheName, getListenerId, getWaitToDieMillis, initialize, isWorking, setWaitToDieMillis, setWorking, toStringpublic CacheEventQueue(ICacheListener<K,V> listener, long listenerId, String cacheName)
listener - listenerId - cacheName - public CacheEventQueue(ICacheListener<K,V> listener, long listenerId, String cacheName, int maxFailure, int waitBeforeRetry)
listener - listenerId - cacheName - maxFailure - waitBeforeRetry - protected void initialize(ICacheListener<K,V> listener, long listenerId, String cacheName, int maxFailure, int waitBeforeRetry, String threadPoolName)
initialize in class PooledCacheEventQueue<K,V>listener - listenerId - cacheName - maxFailure - waitBeforeRetry - threadPoolName - public ICacheEventQueue.QueueType getQueueType()
getQueueType in interface ICacheEventQueue<K,V>getQueueType in class PooledCacheEventQueue<K,V>Copyright © 2002–2020 The Apache Software Foundation. All rights reserved.