public static class TcpCommunicationSpi.HandshakeMessage extends MessageAdapter
MessageAdapter.Typereader, readState| Constructor and Description |
|---|
TcpCommunicationSpi.HandshakeMessage()
Default constructor required by
MessageAdapter. |
TcpCommunicationSpi.HandshakeMessage(UUID nodeId,
long connectCnt,
long rcvCnt) |
| Modifier and Type | Method and Description |
|---|---|
long |
connectCount() |
byte |
directType()
Gets message type.
|
UUID |
nodeId() |
boolean |
readFrom(ByteBuffer buf)
Reads this message from provided byte buffer.
|
long |
received() |
String |
toString() |
boolean |
writeTo(ByteBuffer buf,
MessageWriter writer)
Writes this message to provided byte buffer.
|
setReader, skipRecoverypublic TcpCommunicationSpi.HandshakeMessage()
MessageAdapter.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)
writeTo in class MessageAdapterbuf - Byte buffer.writer - Writer.public boolean readFrom(ByteBuffer buf)
readFrom in class MessageAdapterbuf - Byte buffer.public byte directType()
directType in class MessageAdapter
Follow @ApacheIgnite
Ignite Fabric : ver. 1.0.0-RC1 Release Date : February 17 2015