Package com.hazelcast.core
Class EntryEvent<K,V>
java.lang.Object
java.util.EventObject
com.hazelcast.map.AbstractIMapEvent
com.hazelcast.core.EntryEvent<K,V>
- Type Parameters:
K
- key of the map entryV
- value of the map entry
- All Implemented Interfaces:
IMapEvent
,Serializable
public class EntryEvent<K,V> extends AbstractIMapEvent
Map Entry event.
-
Field Summary
-
Constructor Summary
Constructors Constructor Description EntryEvent(Object source, Member member, int eventType, K key, V value)
Constructs an entry event.EntryEvent(Object source, Member member, int eventType, K key, V oldValue, V value)
Constructs an entry event.EntryEvent(Object source, Member member, int eventType, K key, V oldValue, V value, V mergingValue)
Constructs an entry event. -
Method Summary
Modifier and Type Method Description K
getKey()
Returns the key of the entry event.V
getMergingValue()
Returns the incoming merging value of the entry event.V
getOldValue()
Returns the old value of the entry event.V
getValue()
Returns the value of the entry event.String
toString()
Returns a String representation of this event.Methods inherited from class com.hazelcast.map.AbstractIMapEvent
getEventType, getMember, getName, getSource
-
Field Details
-
Constructor Details
-
EntryEvent
Constructs an entry event.- Parameters:
source
- The object on which the event initially occurredmember
- The interface to the cluster member (node)eventType
- The event type as an enumEntryEventType
integerkey
- The key for this entry eventvalue
- The value of the entry event- Throws:
IllegalArgumentException
- if source isnull
-
EntryEvent
Constructs an entry event.- Parameters:
source
- The object on which the Event initially occurredmember
- The interface to the cluster member (node)eventType
- The event type as an enumEntryEventType
integerkey
- The key of this entry eventoldValue
- The old value of the entry eventvalue
- The value of the entry event- Throws:
IllegalArgumentException
- if source isnull
-
EntryEvent
public EntryEvent(Object source, Member member, int eventType, K key, V oldValue, V value, V mergingValue)Constructs an entry event.- Parameters:
source
- The object on which the Event initially occurredmember
- The interface to the cluster member (node)eventType
- The event type as an enumEntryEventType
integerkey
- The key of this entry eventoldValue
- The old value of the entry eventvalue
- The value of the entry eventmergingValue
- The incoming merging value of the entry event- Throws:
IllegalArgumentException
- if source isnull
-
-
Method Details
-
getKey
Returns the key of the entry event.- Returns:
- the key of the entry event
-
getOldValue
Returns the old value of the entry event.- Returns:
- the old value of the entry event
-
getValue
Returns the value of the entry event.- Returns:
- the value of the entry event
-
getMergingValue
Returns the incoming merging value of the entry event.- Returns:
- the merging value
-
toString
Description copied from class:AbstractIMapEvent
Returns a String representation of this event.- Overrides:
toString
in classAbstractIMapEvent
- Returns:
- A String representation of this event.
-