@PublicApi
public interface CacheEntryListener<K,V>
| Modifier and Type | Method and Description |
|---|---|
void |
onAdd(CacheEntryEvent<K,V> event)
Invoked when a key-value was added to the cache
|
void |
onEvict(CacheEntryEvent<K,V> event)
Invoked when a key-value was evicted from the cache
|
void |
onRemove(CacheEntryEvent<K,V> event)
Invoked when a key-value was removed from the cache
|
void |
onUpdate(CacheEntryEvent<K,V> event)
Invoked when key-value was changed in the cache
|
void onAdd(@Nonnull CacheEntryEvent<K,V> event)
event - the addition eventvoid onEvict(@Nonnull CacheEntryEvent<K,V> event)
event - the eviction eventvoid onRemove(@Nonnull CacheEntryEvent<K,V> event)
event - the removal eventvoid onUpdate(@Nonnull CacheEntryEvent<K,V> event)
event - the update eventCopyright © 2018 Atlassian. All rights reserved.