|
||||||||||
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 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()
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. |
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 int SINGLE_QUEUE_TYPE
static final int POOLED_QUEUE_TYPE
Method Detail |
---|
int getQueueType()
void addPutEvent(ICacheElement ce) throws java.io.IOException
ce
- The feature to be added to the PutEvent attribute
java.io.IOException
void addRemoveEvent(java.io.Serializable key) throws java.io.IOException
key
- The feature to be added to the RemoveEvent attribute
java.io.IOException
void addRemoveAllEvent() throws java.io.IOException
java.io.IOException
void addDisposeEvent() throws java.io.IOException
java.io.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 |