|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.jcs.auxiliary.disk.AbstractDiskCache.MyCacheListener
Cache that implements the CacheListener interface, and calls appropriate methods in its parent class.
Field Summary | |
private byte |
listenerId
|
Constructor Summary | |
private |
AbstractDiskCache.MyCacheListener()
|
Method Summary | |
byte |
getListenerId()
Gets the listenerId attribute of the ICacheListener object |
void |
handleDispose(java.lang.String cacheName)
Notifies the subscribers for freeing up the named cache. |
void |
handlePut(ICacheElement element)
Notifies the subscribers for a cache entry update. |
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(byte id)
sets unique identifier of listener home |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private byte listenerId
Constructor Detail |
private AbstractDiskCache.MyCacheListener()
Method Detail |
public byte getListenerId() throws java.io.IOException
ICacheListener
getListenerId
in interface ICacheListener
java.io.IOException
ICacheListener.getListenerId()
public void setListenerId(byte id) throws java.io.IOException
ICacheListener
setListenerId
in interface ICacheListener
id
- The new listenerId value
java.io.IOException
ICacheListener.setListenerId(byte)
public void handlePut(ICacheElement element) throws java.io.IOException
ICacheListener
handlePut
in interface ICacheListener
java.io.IOException
NOTE: This checks if the element is a puratory element and behaves
differently depending. However since we have control over how
elements are added to the cache event queue, that may not be needed
( they are always PurgatoryElements ).
public void handleRemove(java.lang.String cacheName, java.io.Serializable key) throws java.io.IOException
ICacheListener
handleRemove
in interface ICacheListener
java.io.IOException
ICacheListener.handleRemove(java.lang.String, java.io.Serializable)
public void handleRemoveAll(java.lang.String cacheName) throws java.io.IOException
ICacheListener
handleRemoveAll
in interface ICacheListener
java.io.IOException
ICacheListener.handleRemoveAll(java.lang.String)
public void handleDispose(java.lang.String cacheName) throws java.io.IOException
ICacheListener
handleDispose
in interface ICacheListener
java.io.IOException
ICacheListener.handleDispose(java.lang.String)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |