public class NodeIdMessage extends Object implements Message
Modifier and Type | Field and Description |
---|---|
static int |
MESSAGE_FULL_SIZE
Full message size (with message type) in bytes.
|
DIRECT_TYPE_SIZE
Constructor and Description |
---|
NodeIdMessage() |
NodeIdMessage(UUID nodeId) |
Modifier and Type | Method and Description |
---|---|
short |
directType()
Gets message type.
|
byte |
fieldsCount()
Gets fields count.
|
byte[] |
nodeIdBytes() |
static byte[] |
nodeIdBytesWithType(UUID nodeId) |
void |
onAckReceived()
Method called when ack message received.
|
boolean |
readFrom(ByteBuffer buf,
MessageReader reader)
Reads this message from provided byte buffer.
|
String |
toString() |
boolean |
writeTo(ByteBuffer buf,
MessageWriter writer)
Writes this message to provided byte buffer.
|
public static final int MESSAGE_FULL_SIZE
public NodeIdMessage()
public NodeIdMessage(UUID nodeId)
nodeId
- Node ID.public byte[] nodeIdBytes()
public static byte[] nodeIdBytesWithType(UUID nodeId)
nodeId
- Node ID.public void onAckReceived()
onAckReceived
in interface Message
public boolean writeTo(ByteBuffer buf, MessageWriter writer)
public boolean readFrom(ByteBuffer buf, MessageReader reader)
public short directType()
directType
in interface Message
public byte fieldsCount()
fieldsCount
in interface Message
GridGain In-Memory Computing Platform : ver. 8.9.15 Release Date : December 3 2024