org.apache.jcs.engine
Class CacheEventQueueFactory<K extends Serializable,V extends Serializable>

java.lang.Object
  extended by org.apache.jcs.engine.CacheEventQueueFactory<K,V>

public class CacheEventQueueFactory<K extends Serializable,V extends Serializable>
extends Object

This class hands out event Queues. This allows us to change the implementation more easily. You can confugure the cache to use a custom type.

Author:
aaronsm

Constructor Summary
CacheEventQueueFactory()
           
 
Method Summary
 ICacheEventQueue<K,V> createCacheEventQueue(ICacheListener<K,V> listener, long listenerId, String cacheName, int maxFailure, int waitBeforeRetry, String threadPoolName, String poolType)
          Fully configured event queue.
 ICacheEventQueue<K,V> createCacheEventQueue(ICacheListener<K,V> listener, long listenerId, String cacheName, String threadPoolName, String poolType)
          The most commonly used factory method.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CacheEventQueueFactory

public CacheEventQueueFactory()
Method Detail

createCacheEventQueue

public ICacheEventQueue<K,V> createCacheEventQueue(ICacheListener<K,V> listener,
                                                   long listenerId,
                                                   String cacheName,
                                                   String threadPoolName,
                                                   String poolType)
The most commonly used factory method.

Parameters:
listener -
listenerId -
cacheName -
threadPoolName -
poolType - - SINGLE, QUEUED, or classname
Returns:
ICacheEventQueue

createCacheEventQueue

public ICacheEventQueue<K,V> createCacheEventQueue(ICacheListener<K,V> listener,
                                                   long listenerId,
                                                   String cacheName,
                                                   int maxFailure,
                                                   int waitBeforeRetry,
                                                   String threadPoolName,
                                                   String poolType)
Fully configured event queue.

Parameters:
listener -
listenerId -
cacheName -
maxFailure -
waitBeforeRetry -
threadPoolName - null is OK, if not a pooled event queue this is ignored
poolType - single or pooled
Returns:
ICacheEventQueue


Copyright © 2002-2013 The Apache Software Foundation. All Rights Reserved.