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 TypeMethodDescriptionlong
Gets the listenerId attribute of the ICacheListener objectvoid
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
-
Constructor Details
-
MyCacheListener
protected MyCacheListener()
-
-
Method Details
-
getListenerId
Description copied from interface:ICacheListener
Gets the listenerId attribute of the ICacheListener object- Specified by:
getListenerId
in interfaceICacheListener<K,
V> - Returns:
- cacheElement.getElementAttributes();
- Throws:
IOException
- See Also:
-
setListenerId
Description copied from interface:ICacheListener
sets unique identifier of listener home- Specified by:
setListenerId
in interfaceICacheListener<K,
V> - Parameters:
id
-- Throws:
IOException
- See Also:
-
handlePut
Description copied from interface:ICacheListener
Notifies the subscribers for a cache entry update.- Specified by:
handlePut
in interfaceICacheListener<K,
V> - Parameters:
element
-- Throws:
IOException
- See Also:
-
handleRemove
Description copied from interface:ICacheListener
Notifies the subscribers for a cache entry removal.- Specified by:
handleRemove
in interfaceICacheListener<K,
V> - Parameters:
cacheName
-key
-- Throws:
IOException
- See Also:
-
handleRemoveAll
Description copied from interface:ICacheListener
Notifies the subscribers for a cache remove-all.- Specified by:
handleRemoveAll
in interfaceICacheListener<K,
V> - Parameters:
cacheName
-- Throws:
IOException
- See Also:
-
handleDispose
Description copied from interface:ICacheListener
Notifies the subscribers for freeing up the named cache.- Specified by:
handleDispose
in interfaceICacheListener<K,
V> - Parameters:
cacheName
-- Throws:
IOException
- See Also:
-