Class EventArg

  • Direct Known Subclasses:
    CacheEventArg, CQEventArg

    public abstract class EventArg
    extends java.lang.Object
    Contains the necessary information related to the event being raised.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getCacheName()
      Name of the cache the event is raised against.
      EventType getEventType()
      Event Type the event is raised against.
      EventCacheItem getItem()
      Contains the item if the event was registered against EventDataFilter.Metadata or EventDataFilter.DataWithMetadata.
      EventCacheItem getOldItem()
      Only applicable for EventType.ItemUpdated.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • getOldItem

        public final EventCacheItem getOldItem()
        Only applicable for EventType.ItemUpdated. Otherwise it will be null.
        Returns:
        The value of the item before updation.
      • getCacheName

        public final java.lang.String getCacheName()
        Name of the cache the event is raised against.
        Returns:
        The name of the cache.
      • getEventType

        public final EventType getEventType()
        Event Type the event is raised against.
        Returns:
        The event type associated with the EventArgs.
      • getItem

        public final EventCacheItem getItem()
        Contains the item if the event was registered against EventDataFilter.Metadata or EventDataFilter.DataWithMetadata.
        Returns:
        The EventCacheItem instance.