net.sf.ehcache.event
public final class RegisteredEventListeners extends Object
Version: $Id: RegisteredEventListeners.java 51 2006-04-24 09:21:10Z gregluck $
Constructor Summary | |
---|---|
RegisteredEventListeners(Cache cache)
Constructs a new notification service
|
Method Summary | |
---|---|
void | dispose()
Tell listeners to dispose themselves.
|
Set | getCacheEventListeners()
Gets a list of the listeners registered to this class
|
void | notifyElementExpiry(Element element, boolean remoteEvent)
Notifies all registered listeners, in no guaranteed order, that an element has expired
|
void | notifyElementPut(Element element, boolean remoteEvent)
Notifies all registered listeners, in no guaranteed order, that an element was put into the cache
|
void | notifyElementRemoved(Element element, boolean remoteEvent)
Notifies all registered listeners, in no guaranteed order, that an element was removed
|
void | notifyElementUpdated(Element element, boolean remoteEvent)
Notifies all registered listeners, in no guaranteed order, that an element in the cache was updated
|
boolean | registerListener(CacheEventListener cacheEventListener)
Adds a listener to the notification service. |
String | toString()
Returns a string representation of the object. |
boolean | unregisterListener(CacheEventListener cacheEventListener)
Removes a listener from the notification service.
|
Parameters: cache
Returns: a list of type CacheEventListener
Parameters: element remoteEvent whether the event came from a remote cache peer
See Also: CacheEventListener
Parameters: element remoteEvent whether the event came from a remote cache peer
See Also: notifyElementPut
Parameters: element remoteEvent whether the event came from a remote cache peer
See Also: CacheEventListener
Parameters: element remoteEvent whether the event came from a remote cache peer
See Also: notifyElementPut
Parameters: cacheEventListener
Returns: true if the listener is being added and was not already added
toString
method returns a string that
"textually represents" this object. The result should
be a concise but informative representation that is easy for a
person to read.
Returns: a string representation of the object.
Parameters: cacheEventListener
Returns: true if the listener was present