public class ClientMessage extends Object implements Message, Externalizable
DIRECT_TYPE_SIZE| Constructor and Description |
|---|
ClientMessage() |
ClientMessage(BinaryHeapOutputStream stream) |
ClientMessage(boolean isFirstMessage) |
ClientMessage(byte[] data) |
| Modifier and Type | Method and Description |
|---|---|
short |
directType()
Gets message type.
|
byte |
fieldsCount()
Gets fields count.
|
void |
onAckReceived()
Method called when ack message received.
|
byte[] |
payload() |
void |
readExternal(ObjectInput in) |
boolean |
readFrom(ByteBuffer buf)
Reads this message from provided byte buffer.
|
boolean |
readFrom(ByteBuffer buf,
MessageReader reader)
Reads this message from provided byte buffer.
|
void |
writeExternal(ObjectOutput out) |
boolean |
writeTo(ByteBuffer buf,
MessageWriter ignored)
Writes this message to provided byte buffer.
|
public ClientMessage()
public ClientMessage(boolean isFirstMessage)
public ClientMessage(byte[] data)
public ClientMessage(BinaryHeapOutputStream stream)
public boolean writeTo(ByteBuffer buf, MessageWriter ignored)
public boolean readFrom(ByteBuffer buf, MessageReader reader)
public boolean readFrom(ByteBuffer buf) throws IOException
buf - Byte buffer.IOExceptionpublic short directType()
directType in interface Messagepublic byte fieldsCount()
fieldsCount in interface Messagepublic void onAckReceived()
onAckReceived in interface Messagepublic byte[] payload()
public void writeExternal(ObjectOutput out) throws IOException
writeExternal in interface ExternalizableIOExceptionpublic void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal in interface ExternalizableIOExceptionClassNotFoundException
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.15.0 Release Date : April 25 2023