K
- key of the map entryV
- value of the map entrypublic class EntryEvent<K,V> extends AbstractIMapEvent
Modifier and Type | Field and Description |
---|---|
protected K |
key |
protected V |
mergingValue |
protected V |
oldValue |
protected V |
value |
name
source
Constructor and 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.
|
Modifier and Type | Method and 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.
|
getEventType, getMember, getName, getSource
protected K key
protected V oldValue
protected V value
protected V mergingValue
public EntryEvent(Object source, Member member, int eventType, K key, V value)
source
- The object on which the event initially occurredmember
- The interface to the cluster member (node)eventType
- The event type as an enum EntryEventType
integerkey
- The key for this entry eventvalue
- The value of the entry eventIllegalArgumentException
- if source is null
public EntryEvent(Object source, Member member, int eventType, K key, V oldValue, V value)
source
- The object on which the Event initially occurredmember
- The interface to the cluster member (node)eventType
- The event type as an enum EntryEventType
integerkey
- The key of this entry eventoldValue
- The old value of the entry eventvalue
- The value of the entry eventIllegalArgumentException
- if source is null
public EntryEvent(Object source, Member member, int eventType, K key, V oldValue, V value, V mergingValue)
source
- The object on which the Event initially occurredmember
- The interface to the cluster member (node)eventType
- The event type as an enum EntryEventType
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 eventIllegalArgumentException
- if source is null
public K getKey()
public V getOldValue()
public V getValue()
public V getMergingValue()
public String toString()
AbstractIMapEvent
toString
in class AbstractIMapEvent
Copyright © 2022 Hazelcast, Inc.. All rights reserved.