public static class TcpCommunicationSpi.HandshakeMessage extends Object implements Message
Constructor and Description |
---|
TcpCommunicationSpi.HandshakeMessage()
Default constructor required by
Message . |
TcpCommunicationSpi.HandshakeMessage(UUID nodeId,
long connectCnt,
long rcvCnt) |
Modifier and Type | Method and Description |
---|---|
long |
connectCount() |
byte |
directType()
Gets message type.
|
byte |
fieldsCount()
Gets fields count.
|
UUID |
nodeId() |
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 TcpCommunicationSpi.HandshakeMessage()
Message
.public TcpCommunicationSpi.HandshakeMessage(UUID nodeId, long connectCnt, long rcvCnt)
nodeId
- Node ID.connectCnt
- Connect count.rcvCnt
- Number of received messages.public long connectCount()
public long received()
public UUID nodeId()
public boolean writeTo(ByteBuffer buf, MessageWriter writer)
public boolean readFrom(ByteBuffer buf, MessageReader reader)
public byte directType()
directType
in interface Message
public byte fieldsCount()
fieldsCount
in interface Message
Follow @ApacheIgnite
Apache Ignite Fabric : ver. 1.0.0 Release Date : March 31 2015