freemarker.template
Interface CacheListener

All Superinterfaces:
java.util.EventListener
All Known Implementing Classes:
TestInclude2, TestCacheThreaded, TestCacheExpiry, TestInclude

public interface CacheListener
extends java.util.EventListener

An interface for classes that listen for CacheEvents.

Version:
$Id: CacheListener.java,v 1.7 2003/11/03 03:33:31 run2000 Exp $
See Also:
CacheEvent, FileTemplateCache

Method Summary
 void cacheUnavailable(CacheEvent event)
          Called when a cache cannot be updated.
 void elementRemoved(CacheEvent event)
          Called when an element is removed from the cache.
 void elementUpdated(CacheEvent event)
          Called when a cache element updates successfully.
 void elementUpdateFailed(CacheEvent event)
          Called when a cache element fails to update.
 

Method Detail

cacheUnavailable

public void cacheUnavailable(CacheEvent event)
Called when a cache cannot be updated. The event fired contains the Exception object.
Parameters:
event - the CacheEvent fired.

elementUpdated

public void elementUpdated(CacheEvent event)
Called when a cache element updates successfully.
Parameters:
event - the CacheEvent fired.

elementRemoved

public void elementRemoved(CacheEvent event)
Called when an element is removed from the cache.
Parameters:
event - the CacheEvent fired.

elementUpdateFailed

public void elementUpdateFailed(CacheEvent event)
Called when a cache element fails to update. The event fired contains the Exception object.
Parameters:
event - the CacheEvent fired.