T
- the class of the data stored in the cache.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)
CacheEntryListener
cacheEntryAdded
in interface CacheEntryListener<T>
event
- the event object containing all entry informations.public void cacheEntryRemoved(CacheEntryEvent<T> event)
CacheEntryListener
The 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)
CacheEntryListener
The event object contains the new value.
cacheEntryModified
in interface CacheEntryListener<T>
event
- the event object containing all entry informations.Copyright © 2004–2022 XWiki. All rights reserved.