org.eclipse.paho.client.mqttv3.internal.wire
Class MqttPubRel
java.lang.Object
org.eclipse.paho.client.mqttv3.internal.wire.MqttWireMessage
org.eclipse.paho.client.mqttv3.internal.wire.MqttPersistableWireMessage
org.eclipse.paho.client.mqttv3.internal.wire.MqttPubRel
- All Implemented Interfaces:
- MqttPersistable
public class MqttPubRel
- extends MqttPersistableWireMessage
An on-the-wire representation of an MQTT PUBREL message.
Fields inherited from class org.eclipse.paho.client.mqttv3.internal.wire.MqttWireMessage |
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 Summary |
MqttPubRel(byte info,
byte[] data)
Creates a pubrel based on a pubrel set of bytes read fro the network |
MqttPubRel(MqttPubRec pubRec)
Createa a pubrel message based on a pubrec |
Methods inherited from class org.eclipse.paho.client.mqttv3.internal.wire.MqttWireMessage |
createWireMessage, createWireMessage, decodeUTF8, encodeMBI, encodeMessageId, encodeUTF8, getHeader, getKey, getMessageId, getPayload, getType, isMessageIdRequired, isRetryable, readMBI, setDuplicate, setMessageId |
MqttPubRel
public MqttPubRel(MqttPubRec pubRec)
- Createa a pubrel message based on a pubrec
- Parameters:
pubRec
-
MqttPubRel
public MqttPubRel(byte info,
byte[] data)
throws IOException
- Creates a pubrel based on a pubrel set of bytes read fro the network
- Parameters:
info
- data
-
- Throws:
IOException
getVariableHeader
protected byte[] getVariableHeader()
throws MqttException
- Specified by:
getVariableHeader
in class MqttWireMessage
- Throws:
MqttException
getMessageInfo
protected byte getMessageInfo()
- Description copied from class:
MqttWireMessage
- Sub-classes should override this to encode the message info.
Only the least-significant four bits will be used.
- Specified by:
getMessageInfo
in class MqttWireMessage
toString
public String toString()
- Overrides:
toString
in class MqttWireMessage
Copyright © 2013. All Rights Reserved.