Class CacheEvent<K,​V>

java.lang.Object
java.util.EventObject
javax.cache.event.CacheEntryEvent<K,​V>
one.microstream.cache.types.CacheEvent<K,​V>
All Implemented Interfaces:
Serializable, javax.cache.Cache.Entry<K,​V>, Unwrappable

public class CacheEvent<K,​V>
extends javax.cache.event.CacheEntryEvent<K,​V>
implements Unwrappable
See Also:
Serialized Form
  • Method Details

    • getCache

      public javax.cache.Cache<K,​V> getCache()
    • getKey

      public K getKey()
      Specified by:
      getKey in interface javax.cache.Cache.Entry<K,​V>
    • 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>
    • getOldValue

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

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

      public <T> T unwrap​(Class<T> clazz)
      Specified by:
      unwrap in interface javax.cache.Cache.Entry<K,​V>
      Specified by:
      unwrap in interface Unwrappable