-
public class MqttConnect extends MqttWireMessage
An on-the-wire representation of an MQTT CONNECT message.
-
-
Field Summary
Fields Modifier and Type Field Description public final static byteUSER_DEFINED_PAIR_IDENTIFIERpublic static StringKEYprivate StringclientIdprivate MqttMessagewillMessageprivate StringuserNameprivate Array<char>passwordprivate intkeepAliveIntervalprivate StringwillDestination
-
Constructor Summary
Constructors Constructor Description MqttConnect(byte info, Array<byte> data)Constructor for an on the wire MQTT connect message MqttConnect(String clientId, boolean cleanSession, int keepAliveInterval, String userName, Array<char> password, MqttMessage willMessage, String willDestination, String protocolName, int protocolLevel, List<UserProperty> userProperties)
-
Method Summary
Modifier and Type Method Description StringgetClientId()MqttMessagegetWillMessage()StringgetUserName()Array<char>getPassword()intgetKeepAliveInterval()StringgetWillDestination()StringtoString()booleanisCleanSession()Array<byte>getPayload()Sub-classes should override this method to supply the payload bytes. booleanisMessageIdRequired()Returns whether or not this message needs to include a message ID. StringgetKey()Returns a key associated with the message. -
Methods inherited from class org.eclipse.paho.client.mqttv3.internal.wire.MqttWireMessage
createWireMessage, createWireMessage, getHeader, getMessageId, 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
-
MqttConnect
MqttConnect(byte info, Array<byte> data)
Constructor for an on the wire MQTT connect message
-
MqttConnect
MqttConnect(String clientId, boolean cleanSession, int keepAliveInterval, String userName, Array<char> password, MqttMessage willMessage, String willDestination, String protocolName, int protocolLevel, List<UserProperty> userProperties)
-
-
Method Detail
-
getClientId
String getClientId()
-
getWillMessage
MqttMessage getWillMessage()
-
getUserName
String getUserName()
-
getPassword
Array<char> getPassword()
-
getKeepAliveInterval
int getKeepAliveInterval()
-
getWillDestination
String getWillDestination()
-
isCleanSession
boolean isCleanSession()
-
getPayload
Array<byte> getPayload()
Sub-classes should override this method to supply the payload bytes.
-
isMessageIdRequired
boolean isMessageIdRequired()
Returns whether or not this message needs to include a message ID.
-
-
-
-