public class HandshakeMessage2 extends HandshakeMessage
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.
|
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 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 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
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.7.2 Release Date : February 6 2019