Class CacheEntryEvent<K,​V>

  • Type Parameters:
    K - the type of key
    V - the type of value
    All Implemented Interfaces:
    java.io.Serializable, Cache.Entry<K,​V>

    public abstract class CacheEntryEvent<K,​V>
    extends java.util.EventObject
    implements Cache.Entry<K,​V>
    A Cache entry event base class.
    Since:
    1.0
    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private EventType eventType  
      • Fields inherited from class java.util.EventObject

        source
    • Constructor Summary

      Constructors 
      Constructor Description
      CacheEntryEvent​(Cache source, EventType eventType)
      Constructs a cache entry event from a given cache as source
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      EventType getEventType()
      Gets the event type of this event
      abstract V getOldValue()
      Returns the previous value that existed for entry in the cache before modification or removal.
      Cache getSource()
      abstract V getValue()
      Returns the value stored in the cache when this entry was created or updated.
      abstract boolean isOldValueAvailable()
      Whether the old value is available.
      • Methods inherited from class java.util.EventObject

        toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait