Class PassThroughCacheEntryEvent<K,V>
- java.lang.Object
-
- java.util.EventObject
-
- javax.cache.event.CacheEntryEvent<K,V>
-
- com.tangosol.coherence.jcache.passthroughcache.PassThroughCacheEntryEvent<K,V>
-
- Type Parameters:
K- the type of theCachekeysV- the type of theCachevalues
- All Implemented Interfaces:
Serializable,javax.cache.Cache.Entry<K,V>
public class PassThroughCacheEntryEvent<K,V> extends javax.cache.event.CacheEntryEvent<K,V>An implementation of aCacheEntryEventbased on an underlying CoherenceMapEvent.- Since:
- Coherence 12.1.3
- Author:
- bo 2013.11.01
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class java.util.EventObject
source
-
-
Constructor Summary
Constructors Constructor Description PassThroughCacheEntryEvent(javax.cache.Cache<K,V> cache, javax.cache.event.EventType type, MapEvent event)Constructs aPassThroughCacheEntryEvent.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static <K,V>
PassThroughCacheEntryEvent<K,V>from(MapEvent event)Creates aPassThroughCacheEntryEventbased on aMapEventKgetKey()VgetOldValue()VgetValue()booleanisOldValueAvailable()<T> Tunwrap(Class<T> clz)-
Methods inherited from class java.util.EventObject
toString
-
-
-
-
Constructor Detail
-
PassThroughCacheEntryEvent
public PassThroughCacheEntryEvent(javax.cache.Cache<K,V> cache, javax.cache.event.EventType type, MapEvent event)
Constructs aPassThroughCacheEntryEvent.- Parameters:
cache- theCacheon which theCacheEntryEventoccurredtype- theEventTypeevent- the underlyingMapEvent
-
-
Method Detail
-
getKey
public K getKey()
-
getValue
public V getValue()
-
unwrap
public <T> T unwrap(Class<T> clz)
-
isOldValueAvailable
public boolean isOldValueAvailable()
-
getOldValue
public V getOldValue()
-
from
public static <K,V> PassThroughCacheEntryEvent<K,V> from(MapEvent event)
Creates aPassThroughCacheEntryEventbased on aMapEvent- Type Parameters:
K- the key typeV- the value type- Parameters:
event- theMapEvent- Returns:
- a new
PassThroughCacheEntryEvent
-
-