Interface ICacheEventQueue<K,V> 
- All Known Implementing Classes:
- AbstractCacheEventQueue,- CacheEventQueue,- PooledCacheEventQueue
public interface ICacheEventQueue<K,V> 
Interface for a cache event queue. An event queue is used to propagate
 ordered cache events to one and only one target listener.
- 
Nested Class SummaryNested Classes
- 
Method SummaryModifier and TypeMethodDescriptionvoidAdds a feature to the DisposeEvent attribute of the ICacheEventQueue objectvoidaddPutEvent(ICacheElement<K, V> ce) Adds a feature to the PutEvent attribute of the ICacheEventQueue objectvoidAdds a feature to the RemoveAllEvent attribute of the ICacheEventQueue objectvoidaddRemoveEvent(K key) Adds a feature to the RemoveEvent attribute of the ICacheEventQueue objectvoiddestroy()Description of the MethodlongGets the listenerId attribute of the ICacheEventQueue objectReturn the type of event queue we are using, either single or pooled.Returns the historical and statistical data for an event queue cache.booleanisEmpty()Are there elements in the queue.booleanA Queue is working unless it has reached its max failure count.intsize()Returns the number of elements in the queue.
- 
Method Details- 
getQueueTypeReturn the type of event queue we are using, either single or pooled.- Returns:
- the queue type: single or pooled
 
- 
addPutEventAdds a feature to the PutEvent attribute of the ICacheEventQueue object- Parameters:
- ce- The feature to be added to the PutEvent attribute
- Throws:
- IOException
 
- 
addRemoveEventAdds a feature to the RemoveEvent attribute of the ICacheEventQueue object- Parameters:
- key- The feature to be added to the RemoveEvent attribute
- Throws:
- IOException
 
- 
addRemoveAllEventAdds a feature to the RemoveAllEvent attribute of the ICacheEventQueue object- Throws:
- IOException
 
- 
addDisposeEventAdds a feature to the DisposeEvent attribute of the ICacheEventQueue object- Throws:
- IOException
 
- 
getListenerIdlong getListenerId()Gets the listenerId attribute of the ICacheEventQueue object- Returns:
- The listenerId value
 
- 
destroyvoid destroy()Description of the Method
- 
isWorkingboolean isWorking()A Queue is working unless it has reached its max failure count.- Returns:
- boolean
 
- 
sizeint size()Returns the number of elements in the queue. If the queue cannot determine the size accurately it will return 1.- Returns:
- number of items in the queue.
 
- 
isEmptyboolean isEmpty()Are there elements in the queue.- Returns:
- true if there are stil elements.
 
- 
getStatisticsReturns the historical and statistical data for an event queue cache.- Returns:
- IStats
 
 
-