public class Message extends Object
Modifier and Type | Field and Description |
---|---|
static int |
CC_ACK |
static int |
CC_FAILED |
static int |
CC_PING |
static int |
CC_PONG |
static int |
CC_UNKNOWN_COMMAND_CODE |
static String |
FIELD_ERROR_INFO |
Constructor and Description |
---|
Message() |
Message(int commandCode) |
Message(int commandCode,
long replySequence) |
Modifier and Type | Method and Description |
---|---|
int |
getCommandCode() |
long |
getReplySequence() |
long |
getSequence() |
long |
getTimestamp() |
MapValue |
getValues() |
void |
setCommandCode(int commandCode) |
void |
setReplySequence(long replySequence) |
void |
setSequence(long sequence) |
void |
setTimestamp(long timestamp) |
void |
setValue(String name,
String value) |
void |
setValue(String name,
Value value) |
void |
setValues(MapValue values) |
String |
toString() |
void |
unsetValue(String name) |
public static final int CC_UNKNOWN_COMMAND_CODE
public static final int CC_FAILED
public static final int CC_ACK
public static final int CC_PING
public static final int CC_PONG
public static final String FIELD_ERROR_INFO
public Message()
public Message(int commandCode)
public Message(int commandCode, long replySequence)
public int getCommandCode()
public void setCommandCode(int commandCode)
public long getSequence()
public void setSequence(long sequence)
public MapValue getValues()
public void setValues(MapValue values)
public long getReplySequence()
public void setReplySequence(long replySequence)
public void unsetValue(String name)
public long getTimestamp()
public void setTimestamp(long timestamp)