K - the key type of the source cacheV - the value type of the source cachepublic interface CacheEvent<K,V>
Cache operation.| Modifier and Type | Method and Description |
|---|---|
K |
getKey()
The key of the mapping affected by this event.
|
V |
getNewValue()
The mapped value immediately after the mutative event occurred.
|
V |
getOldValue()
The mapped value immediately before the mutative event occurred.
|
Cache<K,V> |
getSource()
Deprecated.
|
EventType |
getType()
Gets the
EventType of this event. |
K getKey()
V getNewValue()
If the mutative event removes the mapping then null is returned.
V getOldValue()
If the mutative event created the mapping then null is returned.