public class GridIoMessage extends Object implements Message, SpanTransport
| 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) |
@Nullable 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() |
byte[] |
span() |
void |
span(byte[] span)
Stored span for transferring.
|
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 Messagepublic boolean writeTo(ByteBuffer buf, MessageWriter writer)
public boolean readFrom(ByteBuffer buf, MessageReader reader)
public short directType()
directType in interface Messagepublic byte fieldsCount()
fieldsCount in interface Messagepublic void span(byte[] span)
span in interface SpanTransportspan - Binary view of span.public byte[] span()
span in interface SpanTransportpublic int partition()
@Nullable public @Nullable String executorName()
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.9.0 Release Date : October 15 2020