Class CoherenceCacheEntryEvent<K,V>

java.lang.Object
java.util.EventObject
javax.cache.event.CacheEntryEvent<K,V>
com.tangosol.coherence.jcache.common.CoherenceCacheEntryEvent<K,V>
Type Parameters:
K - the type of keys
V - the type of values
All Implemented Interfaces:
Serializable, javax.cache.Cache.Entry<K,V>

public class CoherenceCacheEntryEvent<K,V> extends javax.cache.event.CacheEntryEvent<K,V>
A minimal implementation of the CacheEntryEvent.
Since:
Coherence 12.1.3
Author:
jf 2013.10.24
See Also:
  • Constructor Details

    • CoherenceCacheEntryEvent

      public CoherenceCacheEntryEvent(javax.cache.Cache<K,V> cache, javax.cache.event.EventType eventType, K key, V value)
      Constructs a CoherenceCacheEntryEvent based on a specific key and value.
      Parameters:
      cache - the Cache on which the event occurred
      eventType - the EventType for the event
      key - the key of the event
      value - the value of the event
    • CoherenceCacheEntryEvent

      public CoherenceCacheEntryEvent(javax.cache.Cache<K,V> cache, javax.cache.event.EventType eventType, K key, V value, V oldValue)
      Constructs a CoherenceCacheEntryEvent based on a specific key, value and old value.
      Parameters:
      cache - the Cache on which the event occurred
      eventType - the EventType for the event
      key - the key of the event
      value - the value of the event
      oldValue - the old value of the event
  • Method Details

    • getKey

      public K getKey()
    • getValue

      public V getValue()
      Return current value.
      Specified by:
      getValue in interface javax.cache.Cache.Entry<K,V>
      Specified by:
      getValue in class javax.cache.event.CacheEntryEvent<K,V>
      Returns:
      current value of entry in cache
      See Also:
      • JCACHE_1_0_COMPATIBILITY_MODE
    • unwrap

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

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

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

      public String toString()
      Overrides:
      toString in class EventObject