T - the class of the data stored in the cache.@Unstable public abstract class AbstractCacheEntryListener<T> extends Object implements CacheEntryListener<T>
CacheEntryListener interface to make it easy for code wanting to listen to
events to only override the method(s) corresponding to the event(s) listened to.| Constructor and Description |
|---|
AbstractCacheEntryListener() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
public void cacheEntryAdded(CacheEntryEvent<T> event)
CacheEntryListenercacheEntryAdded in interface CacheEntryListener<T>event - the event object containing all entry informations.public void cacheEntryRemoved(CacheEntryEvent<T> event)
CacheEntryListenerThe event object contains the former entry.
cacheEntryRemoved in interface CacheEntryListener<T>event - the event object containing all entry informations.public void cacheEntryModified(CacheEntryEvent<T> event)
CacheEntryListenerThe event object contains the new value.
cacheEntryModified in interface CacheEntryListener<T>event - the event object containing all entry informations.Copyright © 2004–2016 XWiki. All rights reserved.