org.jcreme.caches
Interface CacheListener


public interface CacheListener

This interface describes the CacheListeners. There are only two type of events: either an element was removed or an element was added. There is currently no event for policy changes or size changes. They are considered internal matters of the cache.

Version:
$Revision: 1.2 $
Author:
$Author: dbregeon $

Method Summary
 void elementAdded(CacheEvent evt)
          This method is called when an element is added to a cache.
 void elementRemoved(CacheEvent evt)
          This method is called when an element is removed from a cache.
 

Method Detail

elementRemoved

public void elementRemoved(CacheEvent evt)
This method is called when an element is removed from a cache.

Parameters:
evt - the event that reports the cache modification.

elementAdded

public void elementAdded(CacheEvent evt)
This method is called when an element is added to a cache.

Parameters:
evt - the event that reports the cache modification.


Copyright 2006 null. All Rights Reserved.