javax.util.jcache
Interface CacheListener

All Superinterfaces:
CacheEventListener

public interface CacheListener
extends CacheEventListener

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

Author:
Frank Karlstrøm

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()
 
Methods inherited from interface javax.util.jcache.CacheEventListener
handleEvent
 

Method Detail

onClear

void onClear()

onEvict

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

Parameters:
key - the object wich is evicted.

onLoad

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

Parameters:
key - the object wich is loaded.

onPut

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

Parameters:
key - the object wich is put.

onRemove

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

Parameters:
key - the object wich is removed.


Copyright © 2002-2009 Hosted by SourceForge. All Rights Reserved.