public interface ICacheListener
Note: objects which implement this interface are local listeners to cache changes, whereas objects which implement IRmiCacheListener are remote listeners to cache changes.
| Modifier and Type | Method and Description |
|---|---|
long |
getListenerId()
Gets the listenerId attribute of the ICacheListener object
|
void |
handleDispose(java.lang.String cacheName)
Notifies the subscribers for freeing up the named cache.
|
void |
handlePut(ICacheElement item)
Notifies the subscribers for a cache entry update.
|
void |
handleRemove(java.lang.String cacheName,
java.io.Serializable key)
Notifies the subscribers for a cache entry removal.
|
void |
handleRemoveAll(java.lang.String cacheName)
Notifies the subscribers for a cache remove-all.
|
void |
setListenerId(long id)
sets unique identifier of listener home
|
void handlePut(ICacheElement item) throws java.io.IOException
item - java.io.IOExceptionvoid handleRemove(java.lang.String cacheName,
java.io.Serializable key)
throws java.io.IOException
cacheName - key - java.io.IOExceptionvoid handleRemoveAll(java.lang.String cacheName)
throws java.io.IOException
cacheName - java.io.IOExceptionvoid handleDispose(java.lang.String cacheName)
throws java.io.IOException
cacheName - java.io.IOExceptionvoid setListenerId(long id)
throws java.io.IOException
id - The new listenerId valuejava.io.IOExceptionlong getListenerId()
throws java.io.IOException
java.io.IOExceptionCopyright © 2002-2013 Apache Software Foundation. All Rights Reserved.