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_SIZE
DIRECT_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, received
public 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 Message
directType
in class HandshakeMessage
public int connectionIndex()
connectionIndex
in class HandshakeMessage
public int getMessageSize()
getMessageSize
in class HandshakeMessage
public boolean writeTo(ByteBuffer buf, MessageWriter writer)
writeTo
in interface Message
writeTo
in class HandshakeMessage
buf
- Byte buffer.writer
- Writer.public boolean readFrom(ByteBuffer buf, MessageReader reader)
readFrom
in interface Message
readFrom
in class HandshakeMessage
buf
- Byte buffer.reader
- Reader.public String toString()
toString
in class HandshakeMessage
GridGain In-Memory Computing Platform : ver. 8.9.14 Release Date : November 5 2024