public static class TcpCommunicationSpi.HandshakeMessage extends MessageAdapter
MessageAdapter.Type
reader, 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, skipRecovery
public 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 MessageAdapter
buf
- Byte buffer.writer
- Writer.public boolean readFrom(ByteBuffer buf)
readFrom
in class MessageAdapter
buf
- Byte buffer.public byte directType()
directType
in class MessageAdapter
Follow @ApacheIgnite
Apache Ignite Fabric : ver. 1.0.0-RC1 Release Date : February 16 2015