public class IgfsSyncMessage extends IgfsCommunicationMessage
DIRECT_TYPE_SIZE
Constructor and Description |
---|
IgfsSyncMessage()
Empty constructor required by
Externalizable . |
IgfsSyncMessage(long order,
boolean res) |
Modifier and Type | Method and Description |
---|---|
short |
directType()
Gets message type.
|
byte |
fieldsCount()
Gets fields count.
|
void |
onAckReceived()
Method called when ack message received.
|
long |
order() |
boolean |
readFrom(ByteBuffer buf,
MessageReader reader)
Reads this message from provided byte buffer.
|
boolean |
response() |
String |
toString() |
boolean |
writeTo(ByteBuffer buf,
MessageWriter writer)
Writes this message to provided byte buffer.
|
finishUnmarshal, prepareMarshal
public IgfsSyncMessage()
Externalizable
.public IgfsSyncMessage(long order, boolean res)
order
- Node order.res
- Response flag.public long order()
public boolean response()
True
if response message.public void onAckReceived()
public boolean writeTo(ByteBuffer buf, MessageWriter writer)
writeTo
in interface Message
writeTo
in class IgfsCommunicationMessage
buf
- Byte buffer.writer
- Writer.public boolean readFrom(ByteBuffer buf, MessageReader reader)
readFrom
in interface Message
readFrom
in class IgfsCommunicationMessage
buf
- Byte buffer.reader
- Reader.public short directType()
public byte fieldsCount()
fieldsCount
in interface Message
fieldsCount
in class IgfsCommunicationMessage
Follow @ApacheIgnite
Ignite Fabric : ver. 2.0.0 Release Date : April 30 2017