public class PartitionUpdateCountersMessage extends Object implements Message
DIRECT_TYPE_SIZE| Constructor and Description |
|---|
PartitionUpdateCountersMessage() |
PartitionUpdateCountersMessage(int cacheId,
int initSize) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(int part,
long init,
long updatesCnt) |
int |
cacheId() |
void |
clear()
Clears message.
|
short |
directType()
Gets message type.
|
byte |
fieldsCount()
Gets fields count.
|
long |
initialCounter(int idx) |
void |
initialCounter(int idx,
long value) |
Long |
nextCounter(int partId)
Calculate next counter for partition.
|
void |
onAckReceived()
Method called when ack message received.
|
int |
partition(int idx) |
boolean |
readFrom(ByteBuffer buf,
MessageReader reader)
Reads this message from provided byte buffer.
|
int |
size() |
String |
toString() |
long |
updatesCount(int idx) |
boolean |
writeTo(ByteBuffer buf,
MessageWriter writer)
Writes this message to provided byte buffer.
|
public PartitionUpdateCountersMessage()
public PartitionUpdateCountersMessage(int cacheId,
int initSize)
cacheId - Cache id.initSize - Initial size.public int cacheId()
public int size()
public int partition(int idx)
idx - Item number.public long initialCounter(int idx)
idx - Item number.public void initialCounter(int idx,
long value)
idx - Item number.value - Initial partition counter.public long updatesCount(int idx)
idx - Item number.public void add(int part,
long init,
long updatesCnt)
part - Partition number.init - Init partition counter.updatesCnt - Update counter delta.public Long nextCounter(int partId)
partId - Partition id.public void clear()
public boolean writeTo(ByteBuffer buf, MessageWriter writer)
public boolean readFrom(ByteBuffer buf, MessageReader reader)
public short directType()
directType in interface Messagepublic byte fieldsCount()
fieldsCount in interface Messagepublic void onAckReceived()
onAckReceived in interface Message
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.9.0 Release Date : October 15 2020