|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ICacheEventQueue
Interface for a cache event queue. An event queue is used to propagate ordered cache events to one and only one target listener.
Field Summary | |
---|---|
static String |
POOLED_QUEUE_TYPE
Uses a thread pool |
static String |
SINGLE_QUEUE_TYPE
Does not use a thread pool. |
Method Summary | |
---|---|
void |
addDisposeEvent()
Adds a feature to the DisposeEvent attribute of the ICacheEventQueue object |
void |
addPutEvent(ICacheElement ce)
Adds a feature to the PutEvent attribute of the ICacheEventQueue object |
void |
addRemoveAllEvent()
Adds a feature to the RemoveAllEvent attribute of the ICacheEventQueue object |
void |
addRemoveEvent(Serializable key)
Adds a feature to the RemoveEvent attribute of the ICacheEventQueue object |
void |
destroy()
Description of the Method |
long |
getListenerId()
Gets the listenerId attribute of the ICacheEventQueue object |
String |
getQueueType()
Return the type of event queue we are using, either single or pooled. |
IStats |
getStatistics()
Returns the historical and statistical data for an event queue cache. |
void |
initialize(ICacheListener listener,
long listenerId,
String cacheName,
int maxFailure,
int waitBeforeRetry,
String threadPoolName)
Initializes the queue. |
boolean |
isAlive()
Gets the alive attribute of the ICacheEventQueue object. |
boolean |
isEmpty()
Are there elements in the queue. |
boolean |
isWorking()
A Queue is working unless it has reached its max failure count. |
int |
size()
Returns the number of elements in the queue. |
Field Detail |
---|
static final String SINGLE_QUEUE_TYPE
static final String POOLED_QUEUE_TYPE
Method Detail |
---|
void initialize(ICacheListener listener, long listenerId, String cacheName, int maxFailure, int waitBeforeRetry, String threadPoolName)
listener
- listenerId
- cacheName
- maxFailure
- waitBeforeRetry
- threadPoolName
- String getQueueType()
void addPutEvent(ICacheElement ce) throws IOException
ce
- The feature to be added to the PutEvent attribute
IOException
void addRemoveEvent(Serializable key) throws IOException
key
- The feature to be added to the RemoveEvent attribute
IOException
void addRemoveAllEvent() throws IOException
IOException
void addDisposeEvent() throws IOException
IOException
long getListenerId()
void destroy()
boolean isAlive()
boolean isWorking()
int size()
boolean isEmpty()
IStats getStatistics()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |