Class DataStructureEventArg

    • Constructor Detail

      • DataStructureEventArg

        public DataStructureEventArg​(java.lang.String cacheName,
                                     EventType eventType,
                                     DistributedDataStructure dataType,
                                     java.lang.Object dataTypeItem,
                                     java.lang.Object oldDataTypeItem)
        Constructor that initializes all the properties of this class.
        Parameters:
        cacheName - Name of cache the collection event is to be registered against.
        eventType - Event types the event is to be registered against.
        dataType - The type of collection, pertaining to DistributedDataStructureType, to be returned on fire of collection event.
        dataTypeItem - Value of collection item if the respective filter is set.
        oldDataTypeItem - Old value of collection item if the respective filter is set.
    • Method Detail

      • getCacheName

        public final java.lang.String getCacheName()
        Gets the name of cache the collection event is registered against.
        Returns:
        The name of cache the collection event is registered against.
      • getCollectionItem

        public final java.lang.Object getCollectionItem()
        Gets current the collection item.
        Returns:
        The current collection item.
      • getOldCollectionItem

        public final java.lang.Object getOldCollectionItem()
        Gets the previous value of the collection item. This is only populated in case of update operation.
        Returns:
        The previous value of the collection item.
      • getEventType

        public final EventType getEventType()
        Gets the type of the event.
        Returns:
        The EventType enum.