|
||||||||||
| 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
protected class AbstractDiskCache.MyCacheListener
Cache that implements the CacheListener interface, and calls appropriate methods in its parent class.
| Constructor Summary | |
|---|---|
protected |
AbstractDiskCache.MyCacheListener()
|
| Method Summary | |
|---|---|
long |
getListenerId()
Gets the listenerId attribute of the ICacheListener object |
void |
handleDispose(String cacheName)
Notifies the subscribers for freeing up the named cache. |
void |
handlePut(ICacheElement<K,V> element)
Notifies the subscribers for a cache entry update. |
void |
handleRemove(String cacheName,
K key)
Notifies the subscribers for a cache entry removal. |
void |
handleRemoveAll(String cacheName)
Notifies the subscribers for a cache remove-all. |
void |
setListenerId(long 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 |
| Constructor Detail |
|---|
protected AbstractDiskCache.MyCacheListener()
| Method Detail |
|---|
public long getListenerId()
throws IOException
ICacheListener
getListenerId in interface ICacheListener<K extends Serializable,V extends Serializable>IOExceptionICacheListener.getListenerId()
public void setListenerId(long id)
throws IOException
ICacheListener
setListenerId in interface ICacheListener<K extends Serializable,V extends Serializable>id -
IOExceptionICacheListener.setListenerId(long)
public void handlePut(ICacheElement<K,V> element)
throws IOException
ICacheListener
handlePut in interface ICacheListener<K extends Serializable,V extends Serializable>element -
IOExceptionNOTE: 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(String cacheName,
K key)
throws IOException
ICacheListener
handleRemove in interface ICacheListener<K extends Serializable,V extends Serializable>cacheName - key -
IOExceptionICacheListener.handleRemove(java.lang.String, K)
public void handleRemoveAll(String cacheName)
throws IOException
ICacheListener
handleRemoveAll in interface ICacheListener<K extends Serializable,V extends Serializable>cacheName -
IOExceptionICacheListener.handleRemoveAll(java.lang.String)
public void handleDispose(String cacheName)
throws IOException
ICacheListener
handleDispose in interface ICacheListener<K extends Serializable,V extends Serializable>cacheName -
IOExceptionICacheListener.handleDispose(java.lang.String)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||