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 aCoherenceCacheEntryEventbased 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 aCoherenceCacheEntryEventbased on a specific key, value and old value.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description KgetKey()VgetOldValue()VgetValue()Return current value.booleanisOldValueAvailable()StringtoString()<T> Tunwrap(Class<T> clz)
-
-
-
Constructor Detail
-
CoherenceCacheEntryEvent
public CoherenceCacheEntryEvent(javax.cache.Cache<K,V> cache, javax.cache.event.EventType eventType, K key, V value)
Constructs aCoherenceCacheEntryEventbased on a specific key and value.- Parameters:
cache- theCacheon which the event occurredeventType- theEventTypefor 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 aCoherenceCacheEntryEventbased on a specific key, value and old value.- Parameters:
cache- theCacheon which the event occurredeventType- theEventTypefor 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:
getValuein interfacejavax.cache.Cache.Entry<K,V>- Specified by:
getValuein 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:
toStringin classEventObject
-
-