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 a
CacheEntryEvent
based on an underlying
Coherence MapEvent
.- Since:
- Coherence 12.1.3
- Author:
- bo 2013.11.01
- See Also:
-
Field Summary
Fields inherited from class java.util.EventObject
source
-
Constructor Summary
ConstructorDescriptionPassThroughCacheEntryEvent
(javax.cache.Cache<K, V> cache, javax.cache.event.EventType type, MapEvent event) Constructs aPassThroughCacheEntryEvent
. -
Method Summary
Modifier and TypeMethodDescriptionstatic <K,
V> PassThroughCacheEntryEvent <K, V> Creates aPassThroughCacheEntryEvent
based on aMapEvent
getKey()
getValue()
boolean
<T> T
Methods inherited from class javax.cache.event.CacheEntryEvent
getEventType, getSource
Methods inherited from class java.util.EventObject
toString
-
Constructor Details
-
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 Details
-
getKey
-
getValue
-
unwrap
-
isOldValueAvailable
public boolean isOldValueAvailable() -
getOldValue
-
from
Creates aPassThroughCacheEntryEvent
based on aMapEvent
- Type Parameters:
K
- the key typeV
- the value type- Parameters:
event
- theMapEvent
- Returns:
- a new
PassThroughCacheEntryEvent
-