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 theCache
keysV
- the type of theCache
values
- 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 aCacheEntryEvent
based 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 aPassThroughCacheEntryEvent
based on aMapEvent
K
getKey()
V
getOldValue()
V
getValue()
boolean
isOldValueAvailable()
<T> T
unwrap(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
- theCache
on which theCacheEntryEvent
occurredtype
- theEventType
event
- 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 aPassThroughCacheEntryEvent
based on aMapEvent
- Type Parameters:
K
- the key typeV
- the value type- Parameters:
event
- theMapEvent
- Returns:
- a new
PassThroughCacheEntryEvent
-
-