org.xwiki.cache.event
Interface CacheEntryListener<T>

Type Parameters:
T - the class of the data stored in the cache.
All Superinterfaces:
EventListener

public interface CacheEntryListener<T>
extends EventListener

Version:
$Id: 6a7abbe8b83b613406868e10f0c314014282b400 $

Method Summary
 void cacheEntryAdded(CacheEntryEvent<T> event)
          Called when a new value is inserted in the cache.
 void cacheEntryModified(CacheEntryEvent<T> event)
          Called when an existing value is overwritten in the cache.
 void cacheEntryRemoved(CacheEntryEvent<T> event)
          Called when an existing value is removed from the cache.
 

Method Detail

cacheEntryAdded

void cacheEntryAdded(CacheEntryEvent<T> event)
Called when a new value is inserted in the cache.

Parameters:
event - the event object containing all entry informations.

cacheEntryRemoved

void cacheEntryRemoved(CacheEntryEvent<T> event)
Called when an existing value is removed from the cache.

The event object contains the former entry.

Parameters:
event - the event object containing all entry informations.

cacheEntryModified

void cacheEntryModified(CacheEntryEvent<T> event)
Called when an existing value is overwritten in the cache.

The event object contains the new value.

Parameters:
event - the event object containing all entry informations.


Copyright © 2004-2013 XWiki. All Rights Reserved.