BodyType - The body type of this message.public class ClientGCMsg<BodyType extends IGCSerializableMessage> extends GCMsgBase<MsgGCHdr>
payload| Constructor and Description |
|---|
ClientGCMsg(java.lang.Class<? extends BodyType> bodyType)
Initializes a new instance of the
ClientGCMsg class. |
ClientGCMsg(java.lang.Class<? extends BodyType> bodyType,
GCMsgBase<MsgGCHdr> msg)
Initializes a new instance of the
ClientGCMsg class. |
ClientGCMsg(java.lang.Class<? extends BodyType> bodyType,
GCMsgBase<MsgGCHdr> msg,
int payloadReserve)
Initializes a new instance of the
ClientGCMsg class. |
ClientGCMsg(java.lang.Class<? extends BodyType> bodyType,
int payloadReserve)
Initializes a new instance of the
ClientGCMsg class. |
ClientGCMsg(java.lang.Class<? extends BodyType> bodyType,
IPacketGCMsg msg)
Initializes a new instance of the
ClientGCMsg class. |
| Modifier and Type | Method and Description |
|---|---|
void |
deserialize(byte[] data)
Initializes this client message by deserializing the specified data.
|
int |
getMsgType()
Gets the network message type of this client message.
|
JobID |
getSourceJobID()
Gets the source job id for this client message.
|
JobID |
getTargetJobID()
Gets the target job id for this client message.
|
boolean |
isProto()
Gets a value indicating whether this client message is protobuf backed.
|
byte[] |
serialize()
serializes this client message instance to a byte array.
|
void |
setSourceJobID(JobID jobID)
Sets the source job id for this client message.
|
void |
setTargetJobID(JobID jobID)
Sets the target job id for this client message.
|
getPayload, readByte, readBytes, readDouble, readFloat, readInt, readLong, readNullTermString, readNullTermString, readShort, seek, write, write, write, write, write, write, write, write, write, writeNullTermString, writeNullTermStringpublic ClientGCMsg(java.lang.Class<? extends BodyType> bodyType)
ClientGCMsg class.bodyType - body typepublic ClientGCMsg(java.lang.Class<? extends BodyType> bodyType, int payloadReserve)
ClientGCMsg class.bodyType - body typepayloadReserve - The number of bytes to initialize the payload capacity to.public ClientGCMsg(java.lang.Class<? extends BodyType> bodyType, GCMsgBase<MsgGCHdr> msg)
ClientGCMsg class.
This a reply constructor.bodyType - body typemsg - The message that this instance is a reply for.public ClientGCMsg(java.lang.Class<? extends BodyType> bodyType, GCMsgBase<MsgGCHdr> msg, int payloadReserve)
ClientGCMsg class.
This a reply constructor.bodyType - body typemsg - The message that this instance is a reply for.payloadReserve - The number of bytes to initialize the payload capacity to.public ClientGCMsg(java.lang.Class<? extends BodyType> bodyType, IPacketGCMsg msg)
ClientGCMsg class.
This a receive constructor.bodyType - body typemsg - The packet message to build this client message from.public boolean isProto()
IClientGCMsgpublic int getMsgType()
IClientGCMsgpublic JobID getTargetJobID()
IClientGCMsgpublic void setTargetJobID(JobID jobID)
IClientGCMsgjobID - The target job id.public JobID getSourceJobID()
IClientGCMsgpublic void setSourceJobID(JobID jobID)
IClientGCMsgjobID - The source job id.public byte[] serialize()
IClientGCMsgpublic void deserialize(byte[] data)
IClientGCMsgdata - The data representing a client message.