public class BatchEventData extends Object implements Sequenced, EventData
QueryCacheEventData.QueryCacheEventData| Constructor and Description |
|---|
BatchEventData() |
BatchEventData(Collection<QueryCacheEventData> events,
String source,
int partitionId) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(QueryCacheEventData entry) |
boolean |
equals(Object o) |
Address |
getCaller() |
Collection<QueryCacheEventData> |
getEvents() |
int |
getEventType() |
String |
getMapName() |
int |
getPartitionId()
Returns partition ID which this sequence belongs to.
|
long |
getSequence()
Returns the sequence number.
|
String |
getSource() |
int |
hashCode() |
boolean |
isEmpty() |
void |
readData(ObjectDataInput in)
Reads fields from the input stream
|
void |
setSequence(long sequence)
Sets sequence.
|
int |
size() |
String |
toString() |
void |
writeData(ObjectDataOutput out)
Writes object fields to output stream
|
public BatchEventData()
public BatchEventData(Collection<QueryCacheEventData> events, String source, int partitionId)
public void add(QueryCacheEventData entry)
public Collection<QueryCacheEventData> getEvents()
public boolean isEmpty()
public int size()
public int getPartitionId()
SequencedgetPartitionId in interface Sequencedpublic String getMapName()
getMapName in interface EventDatapublic int getEventType()
getEventType in interface EventDatapublic long getSequence()
SequencedgetSequence in interface Sequencedpublic void setSequence(long sequence)
SequencedsetSequence in interface Sequencedsequence - the sequence number to be set.public void writeData(ObjectDataOutput out) throws IOException
DataSerializablewriteData in interface DataSerializableout - 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
DataSerializablereadData in interface DataSerializablein - inputIOException - if an I/O error occurs. In particular,
an IOException may be thrown if the
input stream has been closed.Copyright © 2020 Hazelcast, Inc.. All Rights Reserved.