Class JCacheEntryEvent<K,V>

  • Type Parameters:
    K - key
    V - value
    All Implemented Interfaces:
    Serializable, javax.cache.Cache.Entry<K,V>

    public class JCacheEntryEvent<K,V>
    extends javax.cache.event.CacheEntryEvent<K,V>
    Entry event element passed to EventListener of JCache object
    Author:
    Nikita Koksharov
    See Also:
    Serialized Form
    • Constructor Detail

      • JCacheEntryEvent

        public JCacheEntryEvent(javax.cache.Cache<K,V> source,
                                javax.cache.event.EventType eventType,
                                Object key,
                                Object value)
      • JCacheEntryEvent

        public JCacheEntryEvent(javax.cache.Cache<K,V> source,
                                javax.cache.event.EventType eventType,
                                Object key,
                                Object value,
                                Object oldValue)
    • Method Detail

      • getKey

        public K getKey()
      • getValue

        public V getValue()
      • unwrap

        public <T> T unwrap(Class<T> clazz)
      • 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>