freemarker.template
Interface CacheListener

All Superinterfaces:
java.util.EventListener

public interface CacheListener
extends java.util.EventListener

An interface for classes that listen for CacheEvents.

Version:
$Id: CacheListener.java 1101 2013-04-01 04:17:32Z run2000 $
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

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

Parameters:
event - the CacheEvent fired.

elementUpdated

void elementUpdated(CacheEvent event)
Called when a cache element updates successfully.

Parameters:
event - the CacheEvent fired.

elementRemoved

void elementRemoved(CacheEvent event)
Called when an element is removed from the cache.

Parameters:
event - the CacheEvent fired.

elementUpdateFailed

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

Parameters:
event - the CacheEvent fired.