K
- the type of keysV
- the type of values
public 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. |
CoherenceCacheEntryEvent(javax.cache.Cache<K,V> cache, javax.cache.event.EventType eventType, MapEvent event)
Constructs a
CoherenceCacheEntryEvent based on a Coherence MapEvent . |
Modifier and Type | Method and Description |
---|---|
K |
getKey() |
V |
getOldValue() |
V |
getValue() |
boolean |
isOldValueAvailable() |
String |
toString() |
<T> T |
unwrap(Class<T> clz) |
public CoherenceCacheEntryEvent(javax.cache.Cache<K,V> cache, javax.cache.event.EventType eventType, MapEvent event)
CoherenceCacheEntryEvent
based on a Coherence MapEvent
.cache
- the Cache
on which the event occurredeventType
- the EventType
for the eventevent
- the underlying Coherence MapEvent
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()
public <T> T unwrap(Class<T> clz)
public V getOldValue() throws UnsupportedOperationException
getOldValue
in class javax.cache.event.CacheEntryEvent<K,V>
UnsupportedOperationException
public boolean isOldValueAvailable()
public String toString()
toString
in class EventObject