|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ICacheListener<K extends Serializable,V extends Serializable>
Used to receive a cache event notification.
Note: objects which implement this interface are local listeners to cache changes, whereas objects which implement IRmiCacheListener are remote listeners to cache changes.
| Method Summary | |
|---|---|
long |
getListenerId()
Gets the listenerId attribute of the ICacheListener object |
void |
handleDispose(String cacheName)
Notifies the subscribers for freeing up the named cache. |
void |
handlePut(ICacheElement<K,V> item)
Notifies the subscribers for a cache entry update. |
void |
handleRemove(String cacheName,
K key)
Notifies the subscribers for a cache entry removal. |
void |
handleRemoveAll(String cacheName)
Notifies the subscribers for a cache remove-all. |
void |
setListenerId(long id)
sets unique identifier of listener home |
| Method Detail |
|---|
void handlePut(ICacheElement<K,V> item)
throws IOException
item -
IOException
void handleRemove(String cacheName,
K key)
throws IOException
cacheName - key -
IOException
void handleRemoveAll(String cacheName)
throws IOException
cacheName -
IOException
void handleDispose(String cacheName)
throws IOException
cacheName -
IOException
void setListenerId(long id)
throws IOException
id - The new listenerId value
IOException
long getListenerId()
throws IOException
IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||