org.norther.tammi.acorn.cache
Interface CacheListener

All Superinterfaces:
EventListener
All Known Implementing Classes:
AbstractResourceResolver.AbstractResource, BufferedResource, DefaultSession, PlainResource

public interface CacheListener
extends EventListener

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

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.
 

Method Detail

expired

void expired(CachedEntryEvent event)
Notifies the object that it has been expired 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.