public class GridIoMessage extends Object implements Message
Modifier and Type | Field and Description |
---|---|
static Integer |
STRIPE_DISABLED_PART |
DIRECT_TYPE_SIZE
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 |
---|---|
short |
directType()
Gets message type.
|
boolean |
equals(Object obj) |
String |
executorName() |
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 static final Integer STRIPE_DISABLED_PART
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 Message
public boolean writeTo(ByteBuffer buf, MessageWriter writer)
public boolean readFrom(ByteBuffer buf, MessageReader reader)
public short directType()
directType
in interface Message
public byte fieldsCount()
fieldsCount
in interface Message
public int partition()
@Nullable public String executorName()
Follow @ApacheIgnite
Ignite Fabric : ver. 2.0.0 Release Date : April 30 2017