public class MqttUnsubscribe extends MqttWireMessage
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
Constructor and Description |
---|
MqttUnsubscribe(byte info,
byte[] data)
Constructor for an on the wire MQTT un-subscribe message
|
MqttUnsubscribe(java.lang.String[] names)
Constructs an MqttUnsubscribe
|
Modifier and Type | Method and Description |
---|---|
byte[] |
getPayload()
Sub-classes should override this method to supply the payload bytes.
|
boolean |
isRetryable() |
java.lang.String |
toString() |
createWireMessage, createWireMessage, getHeader, getKey, getMessageId, getType, isMessageIdRequired, setDuplicate, setMessageId
public MqttUnsubscribe(java.lang.String[] names)
public MqttUnsubscribe(byte info, byte[] data) throws java.io.IOException
info
- data
- java.io.IOException
public java.lang.String toString()
toString
in class MqttWireMessage
public byte[] getPayload() throws MqttException
MqttWireMessage
getPayload
in class MqttWireMessage
MqttException
public boolean isRetryable()
isRetryable
in class MqttWireMessage