com.j_spaces.javax.cache
Interface CacheListener


public interface CacheListener

The listener interface for receiving cache events.

Since:
5.0

Method Summary
 void onClear()
          Triggered when the cache is cleared.
 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

onClear

void onClear()
Triggered when the cache is cleared.


onEvict

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

Parameters:
key - the key that was evicted

onLoad

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

Parameters:
key - the key that was loaded

onPut

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

Parameters:
key - the key that was put

onRemove

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

Parameters:
key - the key that was removed