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, toStringcreateWireMessage, createWireMessage, decodeUTF8, encodeMBI, encodeMessageId, encodeUTF8, getHeader, getMessageId, getPayload, getType, isRetryable, readMBI, setDuplicate, setMessageIdpublic static final String KEY
protected byte[] getVariableHeader()
throws MqttException
getVariableHeader in class MqttWireMessageMqttExceptionpublic boolean isMessageIdRequired()
isMessageIdRequired in class MqttWireMessagepublic String getKey()
MqttWireMessagegetKey in class MqttWireMessageCopyright © 2018 Eclipse Paho. All Rights Reserved.