public class MqttPingResp extends MqttAck
Modifier and Type | Field and Description |
---|---|
static String |
KEY |
duplicate, MESSAGE_TYPE_CONNACK, MESSAGE_TYPE_CONNECT, MESSAGE_TYPE_DISCONNECT, MESSAGE_TYPE_PINGREQ, MESSAGE_TYPE_PINGRESP, MESSAGE_TYPE_PUBACK, MESSAGE_TYPE_PUBCOMP, MESSAGE_TYPE_PUBLISH, MESSAGE_TYPE_PUBREC, MESSAGE_TYPE_PUBREL, MESSAGE_TYPE_SUBACK, MESSAGE_TYPE_SUBSCRIBE, MESSAGE_TYPE_UNSUBACK, MESSAGE_TYPE_UNSUBSCRIBE, msgId, STRING_ENCODING
Constructor and Description |
---|
MqttPingResp(byte info,
byte[] variableHeader) |
Modifier and Type | Method and Description |
---|---|
String |
getKey()
Returns a key associated with the message.
|
protected byte[] |
getVariableHeader() |
boolean |
isMessageIdRequired()
Returns whether or not this message needs to include a message ID.
|
getMessageInfo, toString
createWireMessage, createWireMessage, createWireMessage, decodeUTF8, encodeMBI, encodeMessageId, encodeUTF8, getHeader, getMessageId, getPayload, getType, isRetryable, readMBI, setDuplicate, setMessageId
public static final String KEY
public String getKey()
MqttWireMessage
getKey
in class MqttWireMessage
protected byte[] getVariableHeader() throws MqttException
getVariableHeader
in class MqttWireMessage
MqttException
public boolean isMessageIdRequired()
isMessageIdRequired
in class MqttWireMessage