public class DefaultQueryCacheEventData extends Object implements QueryCacheEventData
QueryCacheEventData
which is sent to subscriber.Constructor and Description |
---|
DefaultQueryCacheEventData() |
DefaultQueryCacheEventData(DefaultQueryCacheEventData other) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
Address |
getCaller() |
long |
getCreationTime() |
Data |
getDataKey() |
Data |
getDataNewValue() |
Data |
getDataOldValue() |
int |
getEventType() |
Object |
getKey() |
String |
getMapName() |
int |
getPartitionId()
Returns partition ID which this sequence belongs to.
|
long |
getSequence()
Returns the sequence number.
|
String |
getSource() |
Object |
getValue() |
int |
hashCode() |
void |
readData(ObjectDataInput in)
Reads fields from the input stream
|
void |
setDataKey(Data dataKey) |
void |
setDataNewValue(Data dataNewValue) |
void |
setDataOldValue(Data dataOldValue) |
void |
setEventType(int eventType) |
void |
setKey(Object key) |
void |
setPartitionId(int partitionId) |
void |
setSequence(long sequence)
Sets sequence.
|
void |
setSerializationService(SerializationService serializationService) |
void |
setValue(Object value) |
String |
toString() |
void |
writeData(ObjectDataOutput out)
Writes object fields to output stream
|
public DefaultQueryCacheEventData()
public DefaultQueryCacheEventData(DefaultQueryCacheEventData other)
public Object getKey()
getKey
in interface QueryCacheEventData
public Object getValue()
getValue
in interface QueryCacheEventData
public Data getDataKey()
getDataKey
in interface QueryCacheEventData
public Data getDataNewValue()
getDataNewValue
in interface QueryCacheEventData
public Data getDataOldValue()
getDataOldValue
in interface QueryCacheEventData
public long getCreationTime()
getCreationTime
in interface QueryCacheEventData
public long getSequence()
Sequenced
getSequence
in interface Sequenced
public int getPartitionId()
Sequenced
getPartitionId
in interface Sequenced
public int getEventType()
getEventType
in interface EventData
public void setSequence(long sequence)
Sequenced
setSequence
in interface Sequenced
sequence
- the sequence number to be set.public void setKey(Object key)
public void setDataKey(Data dataKey)
public void setValue(Object value)
public void setDataNewValue(Data dataNewValue)
public void setDataOldValue(Data dataOldValue)
public void setEventType(int eventType)
public void setPartitionId(int partitionId)
public void setSerializationService(SerializationService serializationService)
setSerializationService
in interface QueryCacheEventData
public String getMapName()
getMapName
in interface EventData
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.