Class EhCacheEventListener
java.lang.Object
org.serviceconnector.cache.ehcache.EhCacheEventListener
- All Implemented Interfaces:
Cloneable,net.sf.ehcache.event.CacheEventListener
The listener interface for receiving ehCacheEvent events. The class that is interested in processing a ehCacheEvent event implements this interface, and the object created with
that class is registered with a component using the component's
addEhCacheEventListener method. When the ehCacheEvent event occurs, that object's appropriate method
is invoked.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()voiddispose()voidnotifyElementEvicted(net.sf.ehcache.Ehcache cache, net.sf.ehcache.Element element) voidnotifyElementExpired(net.sf.ehcache.Ehcache cache, net.sf.ehcache.Element element) voidnotifyElementPut(net.sf.ehcache.Ehcache cache, net.sf.ehcache.Element element) voidnotifyElementRemoved(net.sf.ehcache.Ehcache cache, net.sf.ehcache.Element element) voidnotifyElementUpdated(net.sf.ehcache.Ehcache cache, net.sf.ehcache.Element element) voidnotifyRemoveAll(net.sf.ehcache.Ehcache cache)
-
Constructor Details
-
EhCacheEventListener
public EhCacheEventListener()
-
-
Method Details
-
notifyElementRemoved
public void notifyElementRemoved(net.sf.ehcache.Ehcache cache, net.sf.ehcache.Element element) throws net.sf.ehcache.CacheException - Specified by:
notifyElementRemovedin interfacenet.sf.ehcache.event.CacheEventListener- Throws:
net.sf.ehcache.CacheException
-
notifyElementPut
public void notifyElementPut(net.sf.ehcache.Ehcache cache, net.sf.ehcache.Element element) throws net.sf.ehcache.CacheException - Specified by:
notifyElementPutin interfacenet.sf.ehcache.event.CacheEventListener- Throws:
net.sf.ehcache.CacheException
-
notifyElementUpdated
public void notifyElementUpdated(net.sf.ehcache.Ehcache cache, net.sf.ehcache.Element element) throws net.sf.ehcache.CacheException - Specified by:
notifyElementUpdatedin interfacenet.sf.ehcache.event.CacheEventListener- Throws:
net.sf.ehcache.CacheException
-
notifyElementExpired
public void notifyElementExpired(net.sf.ehcache.Ehcache cache, net.sf.ehcache.Element element) - Specified by:
notifyElementExpiredin interfacenet.sf.ehcache.event.CacheEventListener
-
notifyElementEvicted
public void notifyElementEvicted(net.sf.ehcache.Ehcache cache, net.sf.ehcache.Element element) - Specified by:
notifyElementEvictedin interfacenet.sf.ehcache.event.CacheEventListener
-
notifyRemoveAll
public void notifyRemoveAll(net.sf.ehcache.Ehcache cache) - Specified by:
notifyRemoveAllin interfacenet.sf.ehcache.event.CacheEventListener
-
dispose
public void dispose()- Specified by:
disposein interfacenet.sf.ehcache.event.CacheEventListener
-
clone
- Specified by:
clonein interfacenet.sf.ehcache.event.CacheEventListener- Overrides:
clonein classObject- Throws:
CloneNotSupportedException
-