Package com.hazelcast.map
Class AbstractIMapEvent
- java.lang.Object
-
- java.util.EventObject
-
- com.hazelcast.map.AbstractIMapEvent
-
- All Implemented Interfaces:
IMapEvent
,java.io.Serializable
- Direct Known Subclasses:
EntryEvent
,MapEvent
,MapPartitionLostEvent
public abstract class AbstractIMapEvent extends java.util.EventObject implements IMapEvent
The abstract class for a map eventIMapEvent
.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.String
name
-
Constructor Summary
Constructors Constructor Description AbstractIMapEvent(java.lang.Object source, Member member, int eventType)
Constructs a prototypical map Event.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description EntryEventType
getEventType()
Returns the event typeEntryEventType
.Member
getMember()
Returns the member that fired this event.java.lang.String
getName()
Returns the name of the map for this event.java.lang.Object
getSource()
Returns the object on which the event initially occurred.java.lang.String
toString()
Returns a String representation of this event.
-
-
-
Constructor Detail
-
AbstractIMapEvent
public AbstractIMapEvent(java.lang.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 enumEntryEventType
integer.- Throws:
java.lang.IllegalArgumentException
- if source is null.
-
-
Method Detail
-
getSource
public java.lang.Object getSource()
Returns the object on which the event initially occurred.- Overrides:
getSource
in classjava.util.EventObject
- Returns:
- The object on which the event initially occurred.
-
getMember
public Member getMember()
Returns the member that fired this event.
-
getEventType
public EntryEventType getEventType()
Returns the event typeEntryEventType
.- Specified by:
getEventType
in interfaceIMapEvent
- Returns:
- The event type
EntryEventType
.
-
getName
public java.lang.String getName()
Returns the name of the map for this event.
-
toString
public java.lang.String toString()
Returns a String representation of this event.- Overrides:
toString
in classjava.util.EventObject
- Returns:
- A String representation of this event.
-
-