public class GridIoMessage extends MessageAdapter
MessageAdapter.Typereader, readState| Constructor and Description |
|---|
GridIoMessage()
No-op constructor to support
Externalizable interface. |
GridIoMessage(GridIoPolicy plc,
Object topic,
int topicOrd,
MessageAdapter msg,
boolean ordered,
long timeout,
boolean skipOnTimeout) |
| Modifier and Type | Method and Description |
|---|---|
byte |
directType()
Gets message type.
|
boolean |
equals(Object obj) |
int |
hashCode() |
Object |
message() |
boolean |
readFrom(ByteBuffer buf)
Reads this message from provided byte buffer.
|
boolean |
skipOnTimeout() |
long |
timeout() |
String |
toString() |
boolean |
writeTo(ByteBuffer buf,
MessageWriter writer)
Writes this message to provided byte buffer.
|
setReader, skipRecoverypublic GridIoMessage()
Externalizable interface.
This constructor is not meant to be used for other purposes.public GridIoMessage(GridIoPolicy plc, Object topic, int topicOrd, MessageAdapter msg, boolean ordered, long timeout, boolean skipOnTimeout)
plc - Policy.topic - Communication topic.topicOrd - Topic ordinal value.msg - Message.ordered - Message ordered flag.timeout - Timeout.skipOnTimeout - Whether message can be skipped on timeout.public Object message()
public long timeout()
public boolean skipOnTimeout()
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