Package com.hazelcast.map
Class AbstractIMapEvent
java.lang.Object
java.util.EventObject
com.hazelcast.map.AbstractIMapEvent
- All Implemented Interfaces:
IMapEvent,Serializable
- Direct Known Subclasses:
EntryEvent,MapEvent,MapPartitionLostEvent
The abstract class for a map event
IMapEvent.- See Also:
-
Field Summary
FieldsFields inherited from class java.util.EventObject
source -
Constructor Summary
ConstructorsConstructorDescriptionAbstractIMapEvent(Object source, Member member, int eventType) Constructs a prototypical map Event. -
Method Summary
Modifier and TypeMethodDescriptionReturns the event typeEntryEventType.Returns the member that fired this event.getName()Returns the name of the map for this event.Returns the object on which the event initially occurred.toString()Returns a String representation of this event.
-
Field Details
-
name
-
-
Constructor Details
-
AbstractIMapEvent
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 enumEntryEventTypeinteger.- Throws:
IllegalArgumentException- if source is null.
-
-
Method Details
-
getSource
Returns the object on which the event initially occurred.- Overrides:
getSourcein classEventObject- Returns:
- The object on which the event initially occurred.
-
getMember
Returns the member that fired this event. -
getEventType
Returns the event typeEntryEventType.- Specified by:
getEventTypein interfaceIMapEvent- Returns:
- The event type
EntryEventType.
-
getName
Returns the name of the map for this event. -
toString
Returns a String representation of this event.- Overrides:
toStringin classEventObject- Returns:
- A String representation of this event.
-