@PublicApi public abstract class CacheEntryAdapter<K,V> extends Object implements CacheEntryListener<K,V>
CacheEntryListener.| Constructor and Description |
|---|
CacheEntryAdapter() |
| 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
|
public void onAdd(@Nonnull CacheEntryEvent<K,V> event)
CacheEntryListeneronAdd in interface CacheEntryListener<K,V>event - the addition eventpublic void onEvict(@Nonnull CacheEntryEvent<K,V> event)
CacheEntryListeneronEvict in interface CacheEntryListener<K,V>event - the eviction eventpublic void onRemove(@Nonnull CacheEntryEvent<K,V> event)
CacheEntryListeneronRemove in interface CacheEntryListener<K,V>event - the removal eventpublic void onUpdate(@Nonnull CacheEntryEvent<K,V> event)
CacheEntryListeneronUpdate in interface CacheEntryListener<K,V>event - the update eventCopyright © 2018 Atlassian. All rights reserved.