freemarker.template
Interface CacheListener


public abstract interface CacheListener
extends java.util.EventListener

An interface for classes that listen for CacheEvents.


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

Method Detail

cacheUnavailable

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

elementUpdated

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

elementRemoved

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

elementUpdateFailed

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