Package org.apache.commons.jcs3.engine
Class CacheEventQueueFactory<K,V>
java.lang.Object
org.apache.commons.jcs3.engine.CacheEventQueueFactory<K,V>
This class hands out event Queues. This allows us to change the implementation more easily. You
can configure the cache to use a custom type.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateCacheEventQueue
(ICacheListener<K, V> listener, long listenerId, String cacheName, int maxFailure, int waitBeforeRetry, String threadPoolName, ICacheEventQueue.QueueType poolType) Fully configured event queue.createCacheEventQueue
(ICacheListener<K, V> listener, long listenerId, String cacheName, String threadPoolName, ICacheEventQueue.QueueType poolType) The most commonly used factory method.
-
Constructor Details
-
CacheEventQueueFactory
public CacheEventQueueFactory()
-
-
Method Details
-
createCacheEventQueue
public ICacheEventQueue<K,V> createCacheEventQueue(ICacheListener<K, V> listener, long listenerId, String cacheName, String threadPoolName, ICacheEventQueue.QueueType poolType) The most commonly used factory method.- Parameters:
listener
-listenerId
-cacheName
-threadPoolName
-poolType
- - SINGLE, POOLED- Returns:
- ICacheEventQueue
-
createCacheEventQueue
public ICacheEventQueue<K,V> createCacheEventQueue(ICacheListener<K, V> listener, long listenerId, String cacheName, int maxFailure, int waitBeforeRetry, String threadPoolName, ICacheEventQueue.QueueType poolType) Fully configured event queue.- Parameters:
listener
-listenerId
-cacheName
-maxFailure
-waitBeforeRetry
-threadPoolName
- null is OK, if not a pooled event queue this is ignoredpoolType
- single or pooled- Returns:
- ICacheEventQueue
-