|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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 int |
POOLED_QUEUE_TYPE
Uses a thread pool |
static int |
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(java.io.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 |
int |
getQueueType()
Returnt he type of event queue we are using, either single or pooled. |
IStats |
getStatistics()
Returns the historical and statistical data for an event queue cache. |
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. |
Field Detail |
public static final int SINGLE_QUEUE_TYPE
public static final int POOLED_QUEUE_TYPE
Method Detail |
public int getQueueType()
public void addPutEvent(ICacheElement ce) throws java.io.IOException
ce
- The feature to be added to the PutEvent attribute
java.io.IOException
public void addRemoveEvent(java.io.Serializable key) throws java.io.IOException
key
- The feature to be added to the RemoveEvent attribute
java.io.IOException
public void addRemoveAllEvent() throws java.io.IOException
java.io.IOException
public void addDisposeEvent() throws java.io.IOException
java.io.IOException
public long getListenerId()
public void destroy()
public boolean isAlive()
public boolean isWorking()
public boolean isEmpty()
public IStats getStatistics()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |