|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.jcs.engine.CacheAdaptor
Used for Cache-to-Cache messaging purposes.
Field Summary | |
protected long |
listenerId
Description of the Field |
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)
Notifies the subscribers for freeing up the named cache. |
void |
handlePut(ICacheElement item)
Puts an item into the cache. |
void |
handleRemove(java.lang.String cacheName,
java.io.Serializable key)
Notifies the subscribers for a cache entry removal. |
void |
handleRemoveAll(java.lang.String cacheName)
Notifies the subscribers for a cache remove-all. |
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
ICacheListener
handleRemove
in interface ICacheListener
cacheName
- key
-
java.io.IOException
public void handleRemoveAll(java.lang.String cacheName) throws java.io.IOException
ICacheListener
handleRemoveAll
in interface ICacheListener
cacheName
-
java.io.IOException
public void handleDispose(java.lang.String cacheName) throws java.io.IOException
ICacheListener
handleDispose
in interface ICacheListener
cacheName
-
java.io.IOException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |