Interface Message
- 
- All Superinterfaces:
- Serializable
 - All Known Implementing Classes:
- HandshakeMessage,- HandshakeMessage2,- HandshakeWaitMessage,- JobStealingRequest,- NodeIdMessage,- RecoveryLastReceivedMessage
 
 public interface Message extends Serializable Base class for all communication messages.
- 
- 
Field SummaryFields Modifier and Type Field Description static intDIRECT_TYPE_SIZEDirect type size in bytes.
 - 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description shortdirectType()Gets message type.bytefieldsCount()Gets fields count.voidonAckReceived()Method called when ack message received.booleanreadFrom(ByteBuffer buf, MessageReader reader)Reads this message from provided byte buffer.booleanwriteTo(ByteBuffer buf, MessageWriter writer)Writes this message to provided byte buffer.
 
- 
- 
- 
Field Detail- 
DIRECT_TYPE_SIZEstatic final int DIRECT_TYPE_SIZE Direct type size in bytes.- See Also:
- Constant Field Values
 
 
- 
 - 
Method Detail- 
writeToboolean writeTo(ByteBuffer buf, MessageWriter writer) Writes this message to provided byte buffer.- Parameters:
- buf- Byte buffer.
- writer- Writer.
- Returns:
- Whether message was fully written.
 
 - 
readFromboolean readFrom(ByteBuffer buf, MessageReader reader) Reads this message from provided byte buffer.- Parameters:
- buf- Byte buffer.
- reader- Reader.
- Returns:
- Whether message was fully read.
 
 - 
directTypeshort directType() Gets message type.- Returns:
- Message type.
 
 - 
fieldsCountbyte fieldsCount() Gets fields count.- Returns:
- Fields count.
 
 - 
onAckReceivedvoid onAckReceived() Method called when ack message received.
 
- 
 
-