public class GridIoMessage extends Object implements Message
| Constructor and Description |
|---|
GridIoMessage()
No-op constructor to support
Externalizable interface. |
GridIoMessage(byte plc,
Object topic,
int topicOrd,
Message msg,
boolean ordered,
long timeout,
boolean skipOnTimeout) |
| Modifier and Type | Method and Description |
|---|---|
byte |
directType()
Gets message type.
|
boolean |
equals(Object obj) |
byte |
fieldsCount()
Gets fields count.
|
int |
hashCode() |
Message |
message() |
void |
onAckReceived()
Method called when ack message received.
|
int |
partition()
Get single partition for this message (if applicable).
|
boolean |
readFrom(ByteBuffer buf,
MessageReader reader)
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.
|
public GridIoMessage()
Externalizable interface.
This constructor is not meant to be used for other purposes.public GridIoMessage(byte plc,
Object topic,
int topicOrd,
Message 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 Message message()
public long timeout()
public boolean skipOnTimeout()
public void onAckReceived()
onAckReceived in interface Messagepublic boolean writeTo(ByteBuffer buf, MessageWriter writer)
public boolean readFrom(ByteBuffer buf, MessageReader reader)
public byte directType()
directType in interface Messagepublic byte fieldsCount()
fieldsCount in interface Messagepublic int partition()
Follow @ApacheIgnite
Ignite Fabric : ver. 1.9.0 Release Date : March 2 2017