public class ClientMessage extends Object implements Message, Externalizable
DIRECT_TYPE_SIZE| Constructor and Description |
|---|
ClientMessage() |
ClientMessage(BinaryHeapOutputStream stream) |
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,
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(byte[] data)
public ClientMessage(BinaryHeapOutputStream stream)
public boolean writeTo(ByteBuffer buf, MessageWriter ignored)
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 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.10.0 Release Date : March 10 2021