public final class PacketMsg extends Object implements IPacketMsg
Modifier and Type | Field and Description |
---|---|
private EMsg |
msgType
Gets the network message type of this packet message.
|
(package private) byte[] |
payload |
private long |
sourceJobID
Gets the source job id for this packet message.
|
private long |
targetJobID
Gets the target job id for this packet message.
|
Constructor and Description |
---|
PacketMsg(EMsg eMsg,
byte[] data)
Initializes a new instance of the
PacketMsg class. |
Modifier and Type | Method and Description |
---|---|
byte[] |
getData()
Gets the underlying data that represents this client message.
|
boolean |
isProto()
Gets a value indicating whether this packet message is protobuf backed.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getMsgType, getSourceJobID, getTargetJobID
private final EMsg msgType
private long targetJobID
private long sourceJobID
byte[] payload
public boolean isProto()
isProto
in interface IPacketMsg
public byte[] getData()
getData
in interface IPacketMsg
Copyright © 2012. All Rights Reserved.