|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.jcs.engine.CacheAdaptor
public class CacheAdaptor
Used for Cache-to-Cache messaging purposes. These are used in the balking facades in the lateral and remote caches.
Field Summary | |
---|---|
protected long |
listenerId
The unique id of this listener. |
Constructor Summary | |
---|---|
CacheAdaptor(ICache cache)
Constructor for the CacheAdaptor object |
Method Summary | |
---|---|
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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected long listenerId
Constructor Detail |
---|
public CacheAdaptor(ICache cache)
cache
- Method Detail |
---|
public void setListenerId(long id) throws java.io.IOException
setListenerId
in interface ICacheListener
id
- The new listenerId value
java.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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |