public class HandshakeMessage2 extends HandshakeMessage
| Modifier and Type | Field and Description |
|---|---|
static int |
HANDSHAKE2_MESSAGE_SIZE
Message size in bytes including
HandshakeMessage fields. |
MESSAGE_FULL_SIZEDIRECT_TYPE_SIZE| Constructor and Description |
|---|
HandshakeMessage2() |
HandshakeMessage2(UUID nodeId,
long connectCnt,
long rcvCnt,
int connIdx) |
| Modifier and Type | Method and Description |
|---|---|
int |
connectionIndex() |
short |
directType()
Gets message type.
|
int |
getMessageSize() |
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.
|
connectCount, fieldsCount, nodeId, onAckReceived, receivedpublic static final int HANDSHAKE2_MESSAGE_SIZE
HandshakeMessage fields.public HandshakeMessage2()
public HandshakeMessage2(UUID nodeId, long connectCnt, long rcvCnt, int connIdx)
nodeId - Node ID.connectCnt - Connect count.rcvCnt - Number of received messages.connIdx - Connection index.public short directType()
directType in interface MessagedirectType in class HandshakeMessagepublic int connectionIndex()
connectionIndex in class HandshakeMessagepublic int getMessageSize()
getMessageSize in class HandshakeMessagepublic boolean writeTo(ByteBuffer buf, MessageWriter writer)
writeTo in interface MessagewriteTo in class HandshakeMessagebuf - Byte buffer.writer - Writer.public boolean readFrom(ByteBuffer buf, MessageReader reader)
readFrom in interface MessagereadFrom in class HandshakeMessagebuf - Byte buffer.reader - Reader.public String toString()
toString in class HandshakeMessage
GridGain In-Memory Computing Platform : ver. 8.9.26 Release Date : October 16 2025