public class HandshakeMessage 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 |
|---|
HandshakeMessage()
Default constructor required by
Message. |
HandshakeMessage(UUID nodeId,
long connectCnt,
long rcvCnt) |
| Modifier and Type | Method and Description |
|---|---|
long |
connectCount() |
int |
connectionIndex() |
short |
directType()
Gets message type.
|
byte |
fieldsCount()
Gets fields count.
|
int |
getMessageSize() |
UUID |
nodeId() |
void |
onAckReceived()
Method called when ack message received.
|
boolean |
readFrom(ByteBuffer buf,
MessageReader reader)
Reads this message from provided byte buffer.
|
long |
received() |
String |
toString() |
boolean |
writeTo(ByteBuffer buf,
MessageWriter writer)
Writes this message to provided byte buffer.
|
public static final int MESSAGE_FULL_SIZE
public HandshakeMessage()
Message.public HandshakeMessage(UUID nodeId, long connectCnt, long rcvCnt)
nodeId - Node ID.connectCnt - Connect count.rcvCnt - Number of received messages.public int connectionIndex()
public long connectCount()
public long received()
public UUID nodeId()
public int getMessageSize()
public void onAckReceived()
onAckReceived in interface Messagepublic 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 Message
GridGain In-Memory Computing Platform : ver. 8.9.26 Release Date : October 16 2025