K - the type of the keys from the cacheV - the type of the values from the cachepublic abstract class CacheEventAdapter<K,V>
extends java.lang.Object
implements org.ehcache.event.CacheEventListener<K,V>
| Constructor and Description |
|---|
CacheEventAdapter() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
onCreation(K key,
V newValue)
Invoked when a
CacheEvent for a creation is received. |
void |
onEvent(org.ehcache.event.CacheEvent<? extends K,? extends V> event) |
protected void |
onEviction(K key,
V evictedValue)
Invoked when a
CacheEvent for an eviction is received. |
protected void |
onExpiry(K key,
V expiredValue)
Invoked when a
CacheEvent for an expiration is received. |
protected void |
onRemoval(K key,
V removedValue)
Invoked when a
CacheEvent for a removal is received. |
protected void |
onUpdate(K key,
V oldValue,
V newValue)
Invoked when a
CacheEvent for an update is received. |
protected void onEviction(K key, V evictedValue)
CacheEvent for an eviction is received.key - the evicted keyevictedValue - the evicted valueprotected void onExpiry(K key, V expiredValue)
CacheEvent for an expiration is received.key - the expired keyexpiredValue - the expired valueprotected void onRemoval(K key, V removedValue)
CacheEvent for a removal is received.key - the removed keyremovedValue - the removed valueprotected void onUpdate(K key, V oldValue, V newValue)
CacheEvent for an update is received.key - the updated keyoldValue - the previous valuenewValue - the updated value