Package org.apache.commons.jcs3.engine
Class CacheEventQueue<K,V> 
java.lang.Object
org.apache.commons.jcs3.engine.AbstractCacheEventQueue<K,V>
 
org.apache.commons.jcs3.engine.PooledCacheEventQueue<K,V>
 
org.apache.commons.jcs3.engine.CacheEventQueue<K,V> 
- All Implemented Interfaces:
- ICacheEventQueue<K,- V> 
An event queue is used to propagate ordered cache events to one and only one target listener.
- 
Nested Class SummaryNested classes/interfaces inherited from class org.apache.commons.jcs3.engine.AbstractCacheEventQueueAbstractCacheEventQueue.AbstractCacheEvent, AbstractCacheEventQueue.DisposeEvent, AbstractCacheEventQueue.PutEvent, AbstractCacheEventQueue.RemoveAllEvent, AbstractCacheEventQueue.RemoveEventNested classes/interfaces inherited from interface org.apache.commons.jcs3.engine.behavior.ICacheEventQueueICacheEventQueue.QueueType
- 
Field SummaryFields inherited from class org.apache.commons.jcs3.engine.PooledCacheEventQueuepool, queueFields inherited from class org.apache.commons.jcs3.engine.AbstractCacheEventQueueDEFAULT_WAIT_TO_DIE_MILLIS
- 
Constructor SummaryConstructorsConstructorDescriptionCacheEventQueue(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
- 
Method SummaryModifier and TypeMethodDescriptionprotected ExecutorServicecreatePool(String threadPoolName) Create the thread pool.What type of queue is this.Methods inherited from class org.apache.commons.jcs3.engine.PooledCacheEventQueuedestroy, getStatistics, initialize, isEmpty, put, sizeMethods inherited from class org.apache.commons.jcs3.engine.AbstractCacheEventQueueaddDisposeEvent, addPutEvent, addRemoveAllEvent, addRemoveEvent, getCacheName, getListenerId, getWaitToDieMillis, initialize, isWorking, setWaitToDieMillis, setWorking, toString
- 
Constructor Details- 
CacheEventQueueConstructs with the specified listener and the cache name.- Parameters:
- listener-
- listenerId-
- cacheName-
 
- 
CacheEventQueuepublic CacheEventQueue(ICacheListener<K, V> listener, long listenerId, String cacheName, int maxFailure, int waitBeforeRetry) Constructor for the CacheEventQueue object- Parameters:
- listener-
- listenerId-
- cacheName-
- maxFailure-
- waitBeforeRetry-
 
 
- 
- 
Method Details- 
createPoolCreate the thread pool.- Overrides:
- createPoolin class- PooledCacheEventQueue<K,- V> 
- Parameters:
- threadPoolName-
- Since:
- 3.1
 
- 
getQueueTypeWhat type of queue is this.- Specified by:
- getQueueTypein interface- ICacheEventQueue<K,- V> 
- Overrides:
- getQueueTypein class- PooledCacheEventQueue<K,- V> 
- Returns:
- queueType
 
 
-