Package org.xwiki.cache.event
Class AbstractCacheEntryListener<T>
- java.lang.Object
-
- org.xwiki.cache.event.AbstractCacheEntryListener<T>
-
- Type Parameters:
T
- the class of the data stored in the cache.
- All Implemented Interfaces:
EventListener
,CacheEntryListener<T>
public abstract class AbstractCacheEntryListener<T> extends Object implements CacheEntryListener<T>
Empty implementations of theCacheEntryListener
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.- Since:
- 8.1M1
- Version:
- $Id: eb7110887591d05ad557c687f968704dd6b2ab3a $
-
-
Constructor Summary
Constructors Constructor Description AbstractCacheEntryListener()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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.
-
-
-
Method Detail
-
cacheEntryAdded
public void cacheEntryAdded(CacheEntryEvent<T> event)
Description copied from interface:CacheEntryListener
Called when a new value is inserted in the cache.- Specified by:
cacheEntryAdded
in interfaceCacheEntryListener<T>
- Parameters:
event
- the event object containing all entry informations.
-
cacheEntryRemoved
public void cacheEntryRemoved(CacheEntryEvent<T> event)
Description copied from interface:CacheEntryListener
Called when an existing value is removed from the cache.The event object contains the former entry.
- Specified by:
cacheEntryRemoved
in interfaceCacheEntryListener<T>
- Parameters:
event
- the event object containing all entry informations.
-
cacheEntryModified
public void cacheEntryModified(CacheEntryEvent<T> event)
Description copied from interface:CacheEntryListener
Called when an existing value is overwritten in the cache.The event object contains the new value.
- Specified by:
cacheEntryModified
in interfaceCacheEntryListener<T>
- Parameters:
event
- the event object containing all entry informations.
-
-