org.norther.tammi.acorn.cache.event
Interface CacheListener

All Superinterfaces:
EventListener
All Known Implementing Classes:
BufferedResource, DefaultSession, FileResource, LobResource, TemporaryResource, URLResource

public interface CacheListener
extends EventListener

An interface to cached objects that want to be informed when their state have changed. The object is notified by the CachedEntryEvent event.

Version:
$Id: CacheListener.java,v 1.5 2009/09/30 20:15:59 cvsimp Exp $
Author:
Ilkka Priha

Method Summary
 void activated(CachedEntryEvent event)
          Notifies the object that it has been activated to the cache.
 void expired(CachedEntryEvent event)
          Notifies the object that it has been expired from the cache.
 void passivated(CachedEntryEvent event)
          Notifies the object that it has been passivated from the cache.
 void removed(CachedEntryEvent event)
          Notifies the object that it has been removed from the cache.
 

Method Detail

expired

void expired(CachedEntryEvent event)
Notifies the object that it has been expired from the cache.

Parameters:
event - the cached entry event.

removed

void removed(CachedEntryEvent event)
Notifies the object that it has been removed from the cache.

Parameters:
event - the cached entry event.

passivated

void passivated(CachedEntryEvent event)
Notifies the object that it has been passivated from the cache.

Parameters:
event - the cached entry event.

activated

void activated(CachedEntryEvent event)
Notifies the object that it has been activated to the cache.

Parameters:
event - the cached entry event.


Copyright © 2004 The Norther Organization. All rights reserved.