Package com.atlassian.cache
Class CachedReferenceAdapter<V>
java.lang.Object
com.atlassian.cache.CachedReferenceAdapter<V>
- All Implemented Interfaces:
CachedReferenceListener<V>
@PublicApi
public class CachedReferenceAdapter<V>
extends Object
implements CachedReferenceListener<V>
An abstract adapter for
CachedReferenceListener.- Since:
- 2.4
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidonEvict(CachedReferenceEvent<V> event) Invoked when the cached reference was evictedvoidonReset(CachedReferenceEvent<V> event) Invoked when the cached reference was resetvoidonSet(CachedReferenceEvent<V> event) Invoked when the cached reference was set, e.g. received a new value
-
Constructor Details
-
CachedReferenceAdapter
public CachedReferenceAdapter()
-
-
Method Details
-
onEvict
Description copied from interface:CachedReferenceListenerInvoked when the cached reference was evicted- Specified by:
onEvictin interfaceCachedReferenceListener<V>- Parameters:
event- the eviction event
-
onSet
Description copied from interface:CachedReferenceListenerInvoked when the cached reference was set, e.g. received a new value- Specified by:
onSetin interfaceCachedReferenceListener<V>- Parameters:
event- the set event
-
onReset
Description copied from interface:CachedReferenceListenerInvoked when the cached reference was reset- Specified by:
onResetin interfaceCachedReferenceListener<V>- Parameters:
event- the reset event
-