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 CacheAdaptor(ICache<K,V> cache)
cache
- public void setListenerId(long id) throws IOException
setListenerId
in interface ICacheListener<K,V>
id
- The new listenerId valueIOException
public long getListenerId() throws IOException
getListenerId
in interface ICacheListener<K,V>
IOException
public void handlePut(ICacheElement<K,V> item) throws IOException
handlePut
in interface ICacheListener<K,V>
item
- IOException
public void handleRemove(String cacheName, K key) throws IOException
handleRemove
in interface ICacheListener<K,V>
cacheName
- key
- IOException
public void handleRemoveAll(String cacheName) throws IOException
handleRemoveAll
in interface ICacheListener<K,V>
cacheName
- IOException
public void handleDispose(String cacheName) throws IOException
handleDispose
in interface ICacheListener<K,V>
cacheName
- IOException
Copyright © 2002–2022 The Apache Software Foundation. All rights reserved.