net.spy.cache
Interface CacheListener

All Known Subinterfaces:
Cachable
All Known Implementing Classes:
AbstractCachable, AbstractCacheListener

public interface CacheListener

Objects implementing this interface will be aware of when they're added to, or removed from a cache.


Method Summary
 void cachedEvent(Object key)
          Called whenever an object is added to a cache.
 void uncachedEvent(Object key)
          Called whenever an object is removed from a cache.
 

Method Detail

cachedEvent

void cachedEvent(Object key)
Called whenever an object is added to a cache.

Parameters:
key - the key with which the object was cached

uncachedEvent

void uncachedEvent(Object key)
Called whenever an object is removed from a cache.

Parameters:
key - the key with which the object was cached


Copyright © 1995-2007 SPY Internetworking. All Rights Reserved.