K
- the type of keysV
- the type of valuespublic class CoherenceCacheEntryEvent<K,V>
extends javax.cache.event.CacheEntryEvent<K,V>
CacheEntryEvent
.source
Constructor and Description |
---|
CoherenceCacheEntryEvent(javax.cache.Cache<K,V> cache,
javax.cache.event.EventType eventType,
K key,
V value)
Constructs a
CoherenceCacheEntryEvent based on a specific key and value. |
CoherenceCacheEntryEvent(javax.cache.Cache<K,V> cache,
javax.cache.event.EventType eventType,
K key,
V value,
V oldValue)
Constructs a
CoherenceCacheEntryEvent based on a specific key, value
and old value. |
Modifier and Type | Method and Description |
---|---|
K |
getKey() |
V |
getOldValue() |
V |
getValue()
Return current value.
|
boolean |
isOldValueAvailable() |
String |
toString() |
<T> T |
unwrap(Class<T> clz) |
public CoherenceCacheEntryEvent(javax.cache.Cache<K,V> cache, javax.cache.event.EventType eventType, K key, V value)
CoherenceCacheEntryEvent
based on a specific key and value.cache
- the Cache
on which the event occurredeventType
- the EventType
for the eventkey
- the key of the eventvalue
- the value of the eventpublic CoherenceCacheEntryEvent(javax.cache.Cache<K,V> cache, javax.cache.event.EventType eventType, K key, V value, V oldValue)
CoherenceCacheEntryEvent
based on a specific key, value
and old value.cache
- the Cache
on which the event occurredeventType
- the EventType
for the eventkey
- the key of the eventvalue
- the value of the eventoldValue
- the old value of the eventpublic K getKey()
public V getValue()
getValue
in interface javax.cache.Cache.Entry<K,V>
getValue
in class javax.cache.event.CacheEntryEvent<K,V>
JCACHE_1_0_COMPATIBILITY_MODE
public <T> T unwrap(Class<T> clz)
public V getOldValue()
public boolean isOldValueAvailable()
public String toString()
toString
in class EventObject