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 Summary
Constructors -
Method Summary
Modifier 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
-
MyCacheListener
protected MyCacheListener()
-
-
Method Details
-
getListenerId
Description copied from interface:ICacheListenerGets the listenerId attribute of the ICacheListener object- Specified by:
getListenerIdin interfaceICacheListener<K,V> - Returns:
- cacheElement.getElementAttributes();
- Throws:
IOException- See Also:
-
setListenerId
Description copied from interface:ICacheListenersets unique identifier of listener home- Specified by:
setListenerIdin interfaceICacheListener<K,V> - Parameters:
id-- Throws:
IOException- See Also:
-
handlePut
Description copied from interface:ICacheListenerNotifies the subscribers for a cache entry update.- Specified by:
handlePutin interfaceICacheListener<K,V> - Parameters:
element-- Throws:
IOException- See Also:
-
handleRemove
Description copied from interface:ICacheListenerNotifies the subscribers for a cache entry removal.- Specified by:
handleRemovein interfaceICacheListener<K,V> - Parameters:
cacheName-key-- Throws:
IOException- See Also:
-
handleRemoveAll
Description copied from interface:ICacheListenerNotifies the subscribers for a cache remove-all.- Specified by:
handleRemoveAllin interfaceICacheListener<K,V> - Parameters:
cacheName-- Throws:
IOException- See Also:
-
handleDispose
Description copied from interface:ICacheListenerNotifies the subscribers for freeing up the named cache.- Specified by:
handleDisposein interfaceICacheListener<K,V> - Parameters:
cacheName-- Throws:
IOException- See Also:
-