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 ICacheListener
id
- The new listenerId valuejava.io.IOException
public long getListenerId() throws java.io.IOException
getListenerId
in interface ICacheListener
java.io.IOException
public void handlePut(ICacheElement item) throws java.io.IOException
handlePut
in interface ICacheListener
item
- java.io.IOException
public void handleRemove(java.lang.String cacheName, java.io.Serializable key) throws java.io.IOException
handleRemove
in interface ICacheListener
cacheName
- key
- java.io.IOException
public void handleRemoveAll(java.lang.String cacheName) throws java.io.IOException
handleRemoveAll
in interface ICacheListener
cacheName
- java.io.IOException
public void handleDispose(java.lang.String cacheName) throws java.io.IOException
handleDispose
in interface ICacheListener
cacheName
- java.io.IOException
Copyright © 2002-2013 Apache Software Foundation. All Rights Reserved.