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 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
ConstructorsConstructorDescriptionPassThroughCacheEntryEvent(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 aPassThroughCacheEntryEventbased on aMapEventgetKey()getValue()boolean<T> TMethods inherited from class javax.cache.event.CacheEntryEvent
getEventType, getSourceMethods 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- theCacheon which theCacheEntryEventoccurredtype- theEventTypeevent- the underlyingMapEvent
-
-
Method Details
-
getKey
-
getValue
-
unwrap
-
isOldValueAvailable
public boolean isOldValueAvailable() -
getOldValue
-
from
Creates aPassThroughCacheEntryEventbased on aMapEvent- Type Parameters:
K- the key typeV- the value type- Parameters:
event- theMapEvent- Returns:
- a new
PassThroughCacheEntryEvent
-