Class CoherenceCacheEntryEvent<K,V>
- java.lang.Object
-
- java.util.EventObject
-
- javax.cache.event.CacheEntryEvent<K,V>
-
- com.tangosol.coherence.jcache.common.CoherenceCacheEntryEvent<K,V>
-
- Type Parameters:
K
- the type of keysV
- the type of values
- All Implemented Interfaces:
Serializable
,javax.cache.Cache.Entry<K,V>
public class CoherenceCacheEntryEvent<K,V> extends javax.cache.event.CacheEntryEvent<K,V>
A minimal implementation of theCacheEntryEvent
.- Since:
- Coherence 12.1.3
- Author:
- jf 2013.10.24
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class java.util.EventObject
source
-
-
Constructor Summary
Constructors Constructor Description CoherenceCacheEntryEvent(javax.cache.Cache<K,V> cache, javax.cache.event.EventType eventType, K key, V value)
Constructs aCoherenceCacheEntryEvent
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 aCoherenceCacheEntryEvent
based on a specific key, value and old value.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description K
getKey()
V
getOldValue()
V
getValue()
Return current value.boolean
isOldValueAvailable()
String
toString()
<T> T
unwrap(Class<T> clz)
-
-
-
Constructor Detail
-
CoherenceCacheEntryEvent
public CoherenceCacheEntryEvent(javax.cache.Cache<K,V> cache, javax.cache.event.EventType eventType, K key, V value)
Constructs aCoherenceCacheEntryEvent
based on a specific key and value.- Parameters:
cache
- theCache
on which the event occurredeventType
- theEventType
for the eventkey
- the key of the eventvalue
- the value of the event
-
CoherenceCacheEntryEvent
public CoherenceCacheEntryEvent(javax.cache.Cache<K,V> cache, javax.cache.event.EventType eventType, K key, V value, V oldValue)
Constructs aCoherenceCacheEntryEvent
based on a specific key, value and old value.- Parameters:
cache
- theCache
on which the event occurredeventType
- theEventType
for the eventkey
- the key of the eventvalue
- the value of the eventoldValue
- the old value of the event
-
-
Method Detail
-
getKey
public K getKey()
-
getValue
public V getValue()
Return current value.- Specified by:
getValue
in interfacejavax.cache.Cache.Entry<K,V>
- Specified by:
getValue
in classjavax.cache.event.CacheEntryEvent<K,V>
- Returns:
- current value of entry in cache
- See Also:
JCACHE_1_0_COMPATIBILITY_MODE
-
unwrap
public <T> T unwrap(Class<T> clz)
-
getOldValue
public V getOldValue()
-
isOldValueAvailable
public boolean isOldValueAvailable()
-
toString
public String toString()
- Overrides:
toString
in classEventObject
-
-