Package com.atlassian.cache
Interface CacheEntryListener<K,V>
- All Known Implementing Classes:
CacheEntryAdapter
@PublicApi
public interface CacheEntryListener<K,V>
A cache listener.
- Since:
- 2.4
-
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
-
Method Details
-
onAdd
Invoked when a key-value was added to the cache- Parameters:
event- the addition event
-
onEvict
Invoked when a key-value was evicted from the cache- Parameters:
event- the eviction event
-
onRemove
Invoked when a key-value was removed from the cache- Parameters:
event- the removal event
-
onUpdate
Invoked when key-value was changed in the cache- Parameters:
event- the update event
-