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 the Cache keys
V - the type of the Cache 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:
  • Constructor Details

    • PassThroughCacheEntryEvent

      public PassThroughCacheEntryEvent(javax.cache.Cache<K,V> cache, javax.cache.event.EventType type, MapEvent event)
      Parameters:
      cache - the Cache on which the CacheEntryEvent occurred
      type - the EventType
      event - the underlying MapEvent
  • Method Details

    • getKey

      public K getKey()
    • getValue

      public V getValue()
      Specified by:
      getValue in interface javax.cache.Cache.Entry<K,V>
      Specified by:
      getValue in class javax.cache.event.CacheEntryEvent<K,V>
    • unwrap

      public <T> T unwrap(Class<T> clz)
    • isOldValueAvailable

      public boolean isOldValueAvailable()
      Specified by:
      isOldValueAvailable in class javax.cache.event.CacheEntryEvent<K,V>
    • getOldValue

      public V getOldValue()
      Specified by:
      getOldValue in class javax.cache.event.CacheEntryEvent<K,V>
    • from

      public static <K, V> PassThroughCacheEntryEvent<K,V> from(MapEvent event)
      Type Parameters:
      K - the key type
      V - the value type
      Parameters:
      event - the MapEvent
      Returns:
      a new PassThroughCacheEntryEvent