Package com.atlassian.cache
Class CacheEntryAdapter<K,V>
java.lang.Object
com.atlassian.cache.CacheEntryAdapter<K,V>
- All Implemented Interfaces:
CacheEntryListener<K,V>
@PublicApi
public abstract class CacheEntryAdapter<K,V>
extends Object
implements CacheEntryListener<K,V>
An abstract adapter for
CacheEntryListener.- Since:
- 2.4
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidonAdd(CacheEntryEvent<K, V> event) Invoked when a key-value was added to the cachevoidonEvict(CacheEntryEvent<K, V> event) Invoked when a key-value was evicted from the cachevoidonRemove(CacheEntryEvent<K, V> event) Invoked when a key-value was removed from the cachevoidonUpdate(CacheEntryEvent<K, V> event) Invoked when key-value was changed in the cache
-
Constructor Details
-
CacheEntryAdapter
public CacheEntryAdapter()
-
-
Method Details
-
onAdd
Description copied from interface:CacheEntryListenerInvoked when a key-value was added to the cache- Specified by:
onAddin interfaceCacheEntryListener<K,V> - Parameters:
event- the addition event
-
onEvict
Description copied from interface:CacheEntryListenerInvoked when a key-value was evicted from the cache- Specified by:
onEvictin interfaceCacheEntryListener<K,V> - Parameters:
event- the eviction event
-
onRemove
Description copied from interface:CacheEntryListenerInvoked when a key-value was removed from the cache- Specified by:
onRemovein interfaceCacheEntryListener<K,V> - Parameters:
event- the removal event
-
onUpdate
Description copied from interface:CacheEntryListenerInvoked when key-value was changed in the cache- Specified by:
onUpdatein interfaceCacheEntryListener<K,V> - Parameters:
event- the update event
-