public class GridClientMessageWrapper extends GridTcpCommunicationMessageAdapter
| Modifier and Type | Field and Description |
|---|---|
static byte |
REQ_HEADER
Client request header.
|
BIT_SET_NOT_READ, BOOLEAN_ARR_NOT_READ, BYTE_ARR_LIST_NOT_READ, BYTE_ARR_NOT_READ, CACHE_VER_NOT_READ, CHAR_ARR_NOT_READ, CLOCK_DELTA_VER_NOT_READ, commState, DHT_PART_EXCHANGE_ID_NOT_READ, DOUBLE_ARR_NOT_READ, DR_INT_REQ_ENTRY_NOT_READ, ENUM_NOT_READ, FLOAT_ARR_NOT_READ, GRID_UUID_NOT_READ, INT_ARR_NOT_READ, LONG_ARR_NOT_READ, LONG_LIST_NOT_READ, MSG_NOT_READ, NULL, SHORT_ARR_NOT_READ, STR_NOT_READ, UUID_NOT_READ, VAL_BYTES_NOT_READ| Constructor and Description |
|---|
GridClientMessageWrapper() |
| Modifier and Type | Method and Description |
|---|---|
UUID |
clientId() |
void |
clientId(UUID clientId) |
GridTcpCommunicationMessageAdapter |
clone() |
protected void |
clone0(GridTcpCommunicationMessageAdapter _msg)
Clones all fields of the provided message to
this. |
UUID |
destinationId() |
void |
destinationId(UUID destId) |
byte |
directType() |
byte[] |
message() |
void |
message(byte[] msg) |
int |
messageSize() |
void |
messageSize(int msgSize) |
boolean |
readFrom(ByteBuffer buf) |
long |
requestId() |
void |
requestId(long reqId) |
String |
toString() |
boolean |
writeTo(ByteBuffer buf) |
arrayIterator, messageReader, messageWriterpublic static final byte REQ_HEADER
public long requestId()
public void requestId(long reqId)
reqId - Request ID.public int messageSize()
public void messageSize(int msgSize)
msgSize - Message size.public UUID clientId()
public void clientId(UUID clientId)
clientId - Client ID.public UUID destinationId()
public void destinationId(UUID destId)
destId - Destination ID.public byte[] message()
public void message(byte[] msg)
msg - Message bytes.public boolean writeTo(ByteBuffer buf)
writeTo in class GridTcpCommunicationMessageAdapterbuf - Byte buffer.public boolean readFrom(ByteBuffer buf)
readFrom in class GridTcpCommunicationMessageAdapterbuf - Byte buffer.public byte directType()
directType in class GridTcpCommunicationMessageAdapterpublic GridTcpCommunicationMessageAdapter clone()
clone in class GridTcpCommunicationMessageAdapterprotected void clone0(GridTcpCommunicationMessageAdapter _msg)
this.clone0 in class GridTcpCommunicationMessageAdapter_msg - Message to clone from.Copyright © 2014. All rights reserved.