public class DeserializingEventJournalMapEvent<K,V> extends InternalEventJournalMapEvent implements EventJournalMapEvent<K,V>, HazelcastInstanceAware
dataKey, dataNewValue, dataOldValue, eventType
Constructor and Description |
---|
DeserializingEventJournalMapEvent() |
DeserializingEventJournalMapEvent(SerializationService serializationService,
InternalEventJournalMapEvent je) |
Modifier and Type | Method and Description |
---|---|
int |
getId()
Returns type identifier for this class.
|
K |
getKey()
Returns the key for the event entry.
|
V |
getNewValue()
Returns the new value for the event entry.
|
V |
getOldValue()
Returns the old value for the event entry.
|
EntryEventType |
getType()
Returns the event type.
|
void |
setHazelcastInstance(HazelcastInstance hazelcastInstance)
Gets the HazelcastInstance reference when submitting a Runnable/Callable using Hazelcast ExecutorService.
|
void |
writeData(ObjectDataOutput out)
Writes object fields to output stream
|
equals, getDataKey, getDataNewValue, getDataOldValue, getEventType, getFactoryId, hashCode, readData, toString
public DeserializingEventJournalMapEvent()
public DeserializingEventJournalMapEvent(SerializationService serializationService, InternalEventJournalMapEvent je)
public int getId()
IdentifiedDataSerializable
getId
in interface IdentifiedDataSerializable
getId
in class InternalEventJournalMapEvent
public K getKey()
EventJournalMapEvent
getKey
in interface EventJournalMapEvent<K,V>
public V getNewValue()
EventJournalMapEvent
null
while in other cases it may be non-null
. For instance,
when the event is of type EntryEventType.ADDED
, the new
value is non-null
but when it is of type EntryEventType.REMOVED
,
the value is null
.getNewValue
in interface EventJournalMapEvent<K,V>
public V getOldValue()
EventJournalMapEvent
null
while in other cases it may be non-null
. For instance,
when the event is of type EntryEventType.ADDED
, the old
value is null
but when it is of type EntryEventType.REMOVED
,
the value is non-null
.getOldValue
in interface EventJournalMapEvent<K,V>
public EntryEventType getType()
EventJournalMapEvent
getType
in interface EventJournalMapEvent<K,V>
public void writeData(ObjectDataOutput out) throws IOException
DataSerializable
writeData
in interface DataSerializable
writeData
in class InternalEventJournalMapEvent
out
- outputIOException
- if an I/O error occurs. In particular,
an IOException
may be thrown if the
output stream has been closed.public void setHazelcastInstance(HazelcastInstance hazelcastInstance)
HazelcastInstanceAware
setHazelcastInstance
in interface HazelcastInstanceAware
hazelcastInstance
- the HazelcastInstance referenceCopyright © 2022 Hazelcast, Inc.. All Rights Reserved.