Class AbstractIMapEvent

java.lang.Object
java.util.EventObject
com.hazelcast.map.AbstractIMapEvent
All Implemented Interfaces:
IMapEvent, Serializable
Direct Known Subclasses:
EntryEvent, MapEvent, MapPartitionLostEvent

public abstract class AbstractIMapEvent extends EventObject implements IMapEvent
The abstract class for a map event IMapEvent.
See Also:
  • Field Details

    • name

      protected final String name
  • Constructor Details

    • AbstractIMapEvent

      public AbstractIMapEvent(Object source, Member member, int eventType)
      Constructs a prototypical map Event.
      Parameters:
      source - The object on which the Event initially occurred.
      member - The interface to the cluster member (node).
      eventType - The event type as an enum EntryEventType integer.
      Throws:
      IllegalArgumentException - if source is null.
  • Method Details

    • getSource

      public Object getSource()
      Returns the object on which the event initially occurred.
      Overrides:
      getSource in class EventObject
      Returns:
      The object on which the event initially occurred.
    • getMember

      public Member getMember()
      Returns the member that fired this event.
      Specified by:
      getMember in interface IMapEvent
      Returns:
      The member that fired this event.
    • getEventType

      public EntryEventType getEventType()
      Returns the event type EntryEventType.
      Specified by:
      getEventType in interface IMapEvent
      Returns:
      The event type EntryEventType.
    • getName

      public String getName()
      Returns the name of the map for this event.
      Specified by:
      getName in interface IMapEvent
      Returns:
      The name of the map for this event.
    • toString

      public String toString()
      Returns a String representation of this event.
      Overrides:
      toString in class EventObject
      Returns:
      A String representation of this event.