K
- the key type.V
- the value type.public class LocalEntryEventData<K,V> extends Object implements EventData
EventData
which is used only for the subscriber end of a query cache
and only for entry based events.
For this reason, it is not sent over the wire and is used locally to query cache.
Throws UnsupportedOperationException
if one tries to serialize an instance of this class.Constructor and Description |
---|
LocalEntryEventData(SerializationService serializationService,
String source,
int eventType,
Object key,
Object oldValue,
Object value,
int partitionId) |
Modifier and Type | Method and Description |
---|---|
LocalEntryEventData<K,V> |
cloneWithoutValue() |
Address |
getCaller() |
int |
getEventType() |
K |
getKey() |
Data |
getKeyData() |
String |
getMapName() |
V |
getOldValue() |
Data |
getOldValueData() |
int |
getPartitionId() |
String |
getSource() |
V |
getValue() |
Data |
getValueData() |
void |
readData(ObjectDataInput in)
Reads fields from the input stream
|
String |
toString() |
void |
writeData(ObjectDataOutput out)
Writes object fields to output stream
|
public LocalEntryEventData(SerializationService serializationService, String source, int eventType, Object key, Object oldValue, Object value, int partitionId)
public V getValue()
public V getOldValue()
public K getKey()
public Data getKeyData()
public Data getValueData()
public Data getOldValueData()
public String getMapName()
getMapName
in interface EventData
public int getEventType()
getEventType
in interface EventData
public int getPartitionId()
public LocalEntryEventData<K,V> cloneWithoutValue()
public void writeData(ObjectDataOutput out) throws IOException
DataSerializable
writeData
in interface DataSerializable
out
- outputIOException
- if an I/O error occurs. In particular,
an IOException
may be thrown if the
output stream has been closed.public void readData(ObjectDataInput in) throws IOException
DataSerializable
readData
in interface DataSerializable
in
- inputIOException
- if an I/O error occurs. In particular,
an IOException
may be thrown if the
input stream has been closed.Copyright © 2022 Hazelcast, Inc.. All Rights Reserved.