| |
|
| org.objectweb.celtix.BusEventCache
All known Subclasses: org.objectweb.celtix.bus.busimpl.BusEventCacheImpl,
BusEventCache | public interface BusEventCache (Code) | | Caches all bus events that do not have a listener associated with them.
The bus events will be stored until the cache limit is reached.
After reaching the cache size, events will be discarded using first in,
first out semantics.
|
addEvent | void addEvent(BusEvent e)(Code) | | Add the BusEvent to the cache.
If the maximum size of the cache is reached, the first BusEvent
added will be removed from the cache(FIFO)
Parameters: e - The BusEvent to be added to the cache. |
flushEvents | List<BusEvent> flushEvents()(Code) | | Flushes the cache of all the BusEvent .
List Containing all the BusEvent s cached. |
flushEvents | List<BusEvent> flushEvents(String eventID)(Code) | | Flushes the BusEvent from the cache matching the event id.
Parameters: eventID - The unique event id that identifies the BusEvent . List Containing all BusEvent s matching the event id. |
flushEvents | List<BusEvent> flushEvents(Class> eventClass)(Code) | | Flushes the BusEvent from the cache matching the event class.
Parameters: eventClass - The class of the event that identifies the BusEvent . List Containing all BusEvent s matching the event class. |
getEvents | List<BusEvent> getEvents()(Code) | | Returns all the bus events. This method doesn't remove the
events from the cache.
List Containing all bus events stored in the cache. |
getEvents | List<BusEvent> getEvents(String eventID)(Code) | | Returns all the bus events matching the event id. This method doesn't
remove the events from the cache.
Parameters: eventID - Unique bus event id that identifies the BusEvent . List Containing all of BusEvent s matching the event id. |
setCacheSize | void setCacheSize(int size)(Code) | | Sets the cache size. This method can be used to dynamically change the
cache size from the configured size.
Parameters: size - Indicates the new size of the cache. |
|
|
|