Class 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:
    Serialized Form
    • Constructor Detail

      • 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 Detail

      • 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>