public class CacheAdaptor<K,V> extends Object implements ICacheListener<K,V>
| Constructor and Description |
|---|
CacheAdaptor(ICache<K,V> cache)
Constructor for the CacheAdaptor object
|
| Modifier and Type | Method and Description |
|---|---|
long |
getListenerId()
Gets the listenerId attribute of the CacheAdaptor object
|
void |
handleDispose(String cacheName)
Shutdown call.
|
void |
handlePut(ICacheElement<K,V> item)
Puts an item into the cache.
|
void |
handleRemove(String cacheName,
K key)
Removes an item.
|
void |
handleRemoveAll(String cacheName)
Clears the region.
|
void |
setListenerId(long id)
Sets the listenerId attribute of the CacheAdaptor object
|
public void setListenerId(long id)
throws IOException
setListenerId in interface ICacheListener<K,V>id - The new listenerId valueIOExceptionpublic long getListenerId()
throws IOException
getListenerId in interface ICacheListener<K,V>IOExceptionpublic void handlePut(ICacheElement<K,V> item) throws IOException
handlePut in interface ICacheListener<K,V>item - IOExceptionpublic void handleRemove(String cacheName, K key) throws IOException
handleRemove in interface ICacheListener<K,V>cacheName - key - IOExceptionpublic void handleRemoveAll(String cacheName) throws IOException
handleRemoveAll in interface ICacheListener<K,V>cacheName - IOExceptionpublic void handleDispose(String cacheName) throws IOException
handleDispose in interface ICacheListener<K,V>cacheName - IOExceptionCopyright © 2002–2022 The Apache Software Foundation. All rights reserved.