public class PacketClientMsgProtobuf extends java.lang.Object implements IPacketMsg
| Constructor and Description |
|---|
PacketClientMsgProtobuf(EMsg eMsg,
byte[] data)
Initializes a new instance of the
PacketClientMsgProtobuf class. |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
getData()
Gets the underlying data that represents this client message.
|
MsgHdrProtoBuf |
getHeader()
Gets the header for this packet message.
|
EMsg |
getMsgType()
Gets the network message type of this packet message.
|
long |
getSourceJobID()
Gets the source job id for this packet message.
|
long |
getTargetJobID()
Gets the target job id for this packet message.
|
boolean |
isProto()
Gets a value indicating whether this packet message is protobuf backed.
|
public PacketClientMsgProtobuf(EMsg eMsg, byte[] data) throws java.io.IOException
PacketClientMsgProtobuf class.eMsg - The network message type for this packet message.data - The data.java.io.IOException - exception while deserializing the datapublic MsgHdrProtoBuf getHeader()
public boolean isProto()
IPacketMsgisProto in interface IPacketMsgpublic EMsg getMsgType()
IPacketMsggetMsgType in interface IPacketMsgpublic long getTargetJobID()
IPacketMsggetTargetJobID in interface IPacketMsgpublic long getSourceJobID()
IPacketMsggetSourceJobID in interface IPacketMsgpublic byte[] getData()
IPacketMsggetData in interface IPacketMsg