-
public class MqttConnack extends MqttAck
An on-the-wire representation of an MQTT CONNACK.
-
-
Field Summary
Fields Modifier and Type Field Description private intreturnCode
-
Constructor Summary
Constructors Constructor Description MqttConnack(byte info, Array<byte> variableHeader)
-
Method Summary
Modifier and Type Method Description intgetReturnCode()booleanisMessageIdRequired()Returns whether or not this message needs to include a message ID. StringgetKey()Returns a key associated with the message. StringtoString()-
Methods inherited from class org.eclipse.paho.client.mqttv3.internal.wire.MqttWireMessage
createWireMessage, createWireMessage, getHeader, getMessageId, getPayload, getToken, getType, isRetryable, packetName, setDuplicate, setMessageId, setToken -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
MqttConnack
MqttConnack(byte info, Array<byte> variableHeader)
-
-
Method Detail
-
getReturnCode
int getReturnCode()
-
isMessageIdRequired
boolean isMessageIdRequired()
Returns whether or not this message needs to include a message ID.
-
getKey
String getKey()
Returns a key associated with the message. For most message types this will be unique. For connect, disconnect and ping only one message of this type is allowed so a fixed key will be returned
-
-
-
-