Package com.atlassian.cache
Interface CachedReferenceListener<V>
- All Known Implementing Classes:
CachedReferenceAdapter
@PublicApi
public interface CachedReferenceListener<V>
A resettable reference listener.
- Since:
- 2.4
-
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
-
Method Details
-
onEvict
Invoked when the cached reference was evicted- Parameters:
event- the eviction event
-
onSet
Invoked when the cached reference was set, e.g. received a new value- Parameters:
event- the set event
-
onReset
Invoked when the cached reference was reset- Parameters:
event- the reset event
-