public class MqttConnack extends MqttAck
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
KEY |
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 |
---|
MqttConnack(byte info,
byte[] variableHeader) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getKey()
Returns a key associated with the message.
|
int |
getReturnCode() |
boolean |
getSessionPresent() |
boolean |
isMessageIdRequired()
Returns whether or not this message needs to include a message ID.
|
java.lang.String |
toString() |
createWireMessage, createWireMessage, getHeader, getMessageId, getPayload, getType, isRetryable, setDuplicate, setMessageId
public static final java.lang.String KEY
public MqttConnack(byte info, byte[] variableHeader) throws java.io.IOException
java.io.IOException
public int getReturnCode()
public boolean isMessageIdRequired()
isMessageIdRequired
in class MqttWireMessage
public java.lang.String getKey()
MqttWireMessage
getKey
in class MqttWireMessage
public java.lang.String toString()
public boolean getSessionPresent()