ehcache

net.sf.jsr107cache
Interface CacheListener


public interface CacheListener

Interface describing various events that can happen as elements are added to or removed from a cache


Method Summary
 void onClear()
           
 void onEvict(Object key)
          Triggered when a cache mapping is removed due to eviction
 void onLoad(Object key)
          Triggered when a cache mapping is created due to the cache loader being consulted
 void onPut(Object key)
          Triggered when a cache mapping is created due to calling Cache.put()
 void onRemove(Object key)
          Triggered when a cache mapping is removed due to calling Cache.remove()
 

Method Detail

onLoad

void onLoad(Object key)
Triggered when a cache mapping is created due to the cache loader being consulted


onPut

void onPut(Object key)
Triggered when a cache mapping is created due to calling Cache.put()


onEvict

void onEvict(Object key)
Triggered when a cache mapping is removed due to eviction


onRemove

void onRemove(Object key)
Triggered when a cache mapping is removed due to calling Cache.remove()


onClear

void onClear()

ehcache

true