|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
@PublicApi public interface CacheEntryListener<K,V>
A cache listener.
| Method Summary | |
|---|---|
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 |
| Method Detail |
|---|
void onAdd(@Nonnull
CacheEntryEvent<K,V> event)
event - the addition event
void onEvict(@Nonnull
CacheEntryEvent<K,V> event)
event - the eviction event
void onRemove(@Nonnull
CacheEntryEvent<K,V> event)
event - the removal event
void onUpdate(@Nonnull
CacheEntryEvent<K,V> event)
event - the update event
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||