public class IgniteIoTestMessage extends Object implements Message
DIRECT_TYPE_SIZE| Constructor and Description |
|---|
IgniteIoTestMessage() |
IgniteIoTestMessage(long id,
boolean req,
byte[] payload) |
| Modifier and Type | Method and Description |
|---|---|
void |
copyDataFromRequest(IgniteIoTestMessage req) |
short |
directType()
Gets message type.
|
byte |
fieldsCount()
Gets fields count.
|
byte |
flags() |
void |
flags(byte flags) |
long |
id() |
void |
onAckReceived()
Method called when ack message received.
|
void |
onAfterRead()
This method is called to initialize tracing variables.
|
void |
onBeforeWrite()
This method is called to initialize tracing variables.
|
void |
onRequestProcessed() |
void |
onResponseProcessed() |
boolean |
processFromNioThread() |
void |
processFromNioThread(boolean procFromNioThread) |
boolean |
readFrom(ByteBuffer buf,
MessageReader reader)
Reads this message from provided byte buffer.
|
boolean |
request() |
long |
requestCreateTs() |
long |
requestProcessTs() |
long |
requestReceivedTsMillis() |
long |
requestReceiveTs() |
long |
requestSendTs() |
long |
requestSendTsMillis() |
long |
responseProcessedTs() |
long |
responseProcessTs() |
long |
responseReceivedTsMillis() |
long |
responseReceiveTs() |
long |
responseSendTs() |
long |
responseSendTsMillis() |
UUID |
senderNodeId() |
void |
senderNodeId(UUID sndNodeId) |
String |
toString() |
boolean |
writeTo(ByteBuffer buf,
MessageWriter writer)
Writes this message to provided byte buffer.
|
public IgniteIoTestMessage()
public IgniteIoTestMessage(long id,
boolean req,
byte[] payload)
id - Message ID.req - Request flag.payload - Payload.public boolean processFromNioThread()
True if message should be processed from NIO thread
(otherwise message is submitted to system pool).public void processFromNioThread(boolean procFromNioThread)
procFromNioThread - True if message should be processed from NIO thread.public void flags(byte flags)
flags - Flags.public byte flags()
public boolean request()
true if this is request.public long id()
public long requestCreateTs()
public long requestSendTs()
public long requestReceiveTs()
public long requestProcessTs()
public long responseSendTs()
public long responseReceiveTs()
public long responseProcessTs()
public long requestSendTsMillis()
public long requestReceivedTsMillis()
public long responseSendTsMillis()
public long responseReceivedTsMillis()
public void onAfterRead()
public void onBeforeWrite()
public void copyDataFromRequest(IgniteIoTestMessage req)
public void onRequestProcessed()
public void onResponseProcessed()
public long responseProcessedTs()
public UUID senderNodeId()
public void senderNodeId(UUID sndNodeId)
sndNodeId - Sender node ID.public 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 onAckReceived()
onAckReceived in interface Message
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.15.0 Release Date : April 25 2023