org.objectweb.perseus.cache.api
Interface CacheEventListener


public interface CacheEventListener

This interface is to be implemented at the applicative level, to ensure an appropriate management of objects held in cache. For instances, the event listener can implement a callback to deal with housekeeping of complex objects (e.g. closing OS resources allocated to the corresponding object), after it is notified of their corresponding eviction.

Version:
0.0.0
Author:
Luciano Garcia-Banuelos (Luciano.Garcia@imag.fr)

Method Summary
 void entryBound(CacheEvent event)
          An entry has been added in the cache.
 void entryUnbound(CacheEvent event)
          An entry has been evicted from the cache.
 

Method Detail

entryBound

public void entryBound(CacheEvent event)
An entry has been added in the cache.

Parameters:
event - describes the added entry

entryUnbound

public void entryUnbound(CacheEvent event)
An entry has been evicted from the cache.

Parameters:
event - describes the evicted entry


Copyright © 2000-2002 France Telecom S.A., INRIA, IMAG-LSR All Rights Reserved.