Class ExpirationEvent

  • All Implemented Interfaces:
    java.io.Serializable

    public class ExpirationEvent
    extends java.util.EventObject
    An event indicating the expiration of an object from the data cache, or an expiration of a result list from the query cache. The source of the event will be the cache.
    Since:
    0.3.0
    Author:
    Abe White
    See Also:
    Serialized Form
    • Field Summary

      • Fields inherited from class java.util.EventObject

        source
    • Constructor Summary

      Constructors 
      Constructor Description
      ExpirationEvent​(java.lang.Object source, java.lang.Object key, boolean expired)
      Constructor.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean getExpired()
      Return whether the expired object was expired naturally, or if the object was explicitly removed.
      java.lang.Object getKey()
      Return the expired object id or query key.
      • Methods inherited from class java.util.EventObject

        getSource, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • ExpirationEvent

        public ExpirationEvent​(java.lang.Object source,
                               java.lang.Object key,
                               boolean expired)
        Constructor.
        Parameters:
        source - the data or query cache
        key - the expired object oid or query key
        expired - true if the object was expired naturally; else false.
    • Method Detail

      • getKey

        public java.lang.Object getKey()
        Return the expired object id or query key.
      • getExpired

        public boolean getExpired()
        Return whether the expired object was expired naturally, or if the object was explicitly removed.