Class AbstractDiskCache.MyCacheListener
java.lang.Object
org.apache.commons.jcs3.auxiliary.disk.AbstractDiskCache.MyCacheListener
- All Implemented Interfaces:
- ICacheListener<K,- V> 
- Enclosing class:
- AbstractDiskCache<K,V> 
Cache that implements the CacheListener interface, and calls appropriate methods in its
 parent class.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionlongGets the listenerId attribute of the ICacheListener objectvoidhandleDispose(String cacheName) Notifies the subscribers for freeing up the named cache.voidhandlePut(ICacheElement<K, V> element) Notifies the subscribers for a cache entry update.voidhandleRemove(String cacheName, K key) Notifies the subscribers for a cache entry removal.voidhandleRemoveAll(String cacheName) Notifies the subscribers for a cache remove-all.voidsetListenerId(long id) sets unique identifier of listener home
- 
Constructor Details- 
MyCacheListenerprotected MyCacheListener()
 
- 
- 
Method Details- 
getListenerIdDescription copied from interface:ICacheListenerGets the listenerId attribute of the ICacheListener object- Specified by:
- getListenerIdin interface- ICacheListener<K,- V> 
- Returns:
- cacheElement.getElementAttributes();
- Throws:
- IOException
- See Also:
 
- 
setListenerIdDescription copied from interface:ICacheListenersets unique identifier of listener home- Specified by:
- setListenerIdin interface- ICacheListener<K,- V> 
- Parameters:
- id-
- Throws:
- IOException
- See Also:
 
- 
handlePutDescription copied from interface:ICacheListenerNotifies the subscribers for a cache entry update.- Specified by:
- handlePutin interface- ICacheListener<K,- V> 
- Parameters:
- element-
- Throws:
- IOException
- See Also:
 
- 
handleRemoveDescription copied from interface:ICacheListenerNotifies the subscribers for a cache entry removal.- Specified by:
- handleRemovein interface- ICacheListener<K,- V> 
- Parameters:
- cacheName-
- key-
- Throws:
- IOException
- See Also:
 
- 
handleRemoveAllDescription copied from interface:ICacheListenerNotifies the subscribers for a cache remove-all.- Specified by:
- handleRemoveAllin interface- ICacheListener<K,- V> 
- Parameters:
- cacheName-
- Throws:
- IOException
- See Also:
 
- 
handleDisposeDescription copied from interface:ICacheListenerNotifies the subscribers for freeing up the named cache.- Specified by:
- handleDisposein interface- ICacheListener<K,- V> 
- Parameters:
- cacheName-
- Throws:
- IOException
- See Also:
 
 
-