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()
Sequenced
getPartitionId
in interface Sequenced
public String getMapName()
getMapName
in interface EventData
public int getEventType()
getEventType
in interface EventData
public long getSequence()
Sequenced
getSequence
in interface Sequenced
public void setSequence(long sequence)
Sequenced
setSequence
in interface Sequenced
sequence
- the sequence number to be set.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 © 2018 Hazelcast, Inc.. All Rights Reserved.