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
Fields inherited from class java.util.EventObject
source
-
Constructor Summary
ConstructorDescriptionAbstractIMapEvent
(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 enumEntryEventType
integer.- Throws:
IllegalArgumentException
- if source is null.
-
-
Method Details
-
getSource
Returns the object on which the event initially occurred.- Overrides:
getSource
in 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:
getEventType
in 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:
toString
in classEventObject
- Returns:
- A String representation of this event.
-