Package com.hazelcast.map
Class MapEvent
- java.lang.Object
-
- java.util.EventObject
-
- com.hazelcast.map.AbstractIMapEvent
-
- com.hazelcast.map.MapEvent
-
- All Implemented Interfaces:
IMapEvent
,java.io.Serializable
public class MapEvent extends AbstractIMapEvent
Used for map-wide events likeEntryEventType.EVICT_ALL
andEntryEventType.CLEAR_ALL
.- See Also:
MapListener
,EntryListener
, Serialized Form
-
-
Field Summary
-
Fields inherited from class com.hazelcast.map.AbstractIMapEvent
name
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getNumberOfEntriesAffected()
Returns the number of entries affected by this event.java.lang.String
toString()
Returns a String representation of this event.-
Methods inherited from class com.hazelcast.map.AbstractIMapEvent
getEventType, getMember, getName, getSource
-
-
-
-
Constructor Detail
-
MapEvent
public MapEvent(java.lang.Object source, Member member, int eventType, int numberOfEntriesAffected)
-
-
Method Detail
-
getNumberOfEntriesAffected
public int getNumberOfEntriesAffected()
Returns the number of entries affected by this event.- Returns:
- number of entries affected by this event
-
toString
public java.lang.String toString()
Description copied from class:AbstractIMapEvent
Returns a String representation of this event.- Overrides:
toString
in classAbstractIMapEvent
- Returns:
- A String representation of this event.
-
-