public class CacheAdaptor extends java.lang.Object implements ICacheListener
| Modifier and Type | Field and Description |
|---|---|
protected long |
listenerId
The unique id of this listener.
|
| Constructor and Description |
|---|
CacheAdaptor(ICache cache)
Constructor for the CacheAdaptor object
|
| Modifier and Type | Method and Description |
|---|---|
long |
getListenerId()
Gets the listenerId attribute of the CacheAdaptor object
|
void |
handleDispose(java.lang.String cacheName)
Shutdown call.
|
void |
handlePut(ICacheElement item)
Puts an item into the cache.
|
void |
handleRemove(java.lang.String cacheName,
java.io.Serializable key)
Removes an item.
|
void |
handleRemoveAll(java.lang.String cacheName)
Clears the region.
|
void |
setListenerId(long id)
Sets the listenerId attribute of the CacheAdaptor object
|
public CacheAdaptor(ICache cache)
cache - public void setListenerId(long id)
throws java.io.IOException
setListenerId in interface ICacheListenerid - The new listenerId valuejava.io.IOExceptionpublic long getListenerId()
throws java.io.IOException
getListenerId in interface ICacheListenerjava.io.IOExceptionpublic void handlePut(ICacheElement item) throws java.io.IOException
handlePut in interface ICacheListeneritem - java.io.IOExceptionpublic void handleRemove(java.lang.String cacheName,
java.io.Serializable key)
throws java.io.IOException
handleRemove in interface ICacheListenercacheName - key - java.io.IOExceptionpublic void handleRemoveAll(java.lang.String cacheName)
throws java.io.IOException
handleRemoveAll in interface ICacheListenercacheName - java.io.IOExceptionpublic void handleDispose(java.lang.String cacheName)
throws java.io.IOException
handleDispose in interface ICacheListenercacheName - java.io.IOExceptionCopyright © 2002-2013 Apache Software Foundation. All Rights Reserved.