- java.lang.Object
-
- swim.mqtt.MqttPacket<Object>
-
- swim.mqtt.MqttConnectPacket
-
- All Implemented Interfaces:
Debug
public final class MqttConnectPacket extends MqttPacket<Object> implements Debug
-
-
Method Summary
-
Methods inherited from class swim.mqtt.MqttPacket
encodeMqtt, mqttEncoder
-
-
-
-
Method Detail
-
packetType
public int packetType()
- Specified by:
packetType
in classMqttPacket<Object>
-
packetFlags
public int packetFlags()
- Specified by:
packetFlags
in classMqttPacket<Object>
-
packetFlags
public MqttConnectPacket packetFlags(int packetFlags)
-
protocolName
public String protocolName()
-
protocolName
public MqttConnectPacket protocolName(String protocolName)
-
protocolLevel
public int protocolLevel()
-
protocolLevel
public MqttConnectPacket protocolLevel(int protocolLevel)
-
connectFlags
public int connectFlags()
-
keepAlive
public int keepAlive()
-
keepAlive
public MqttConnectPacket keepAlive(int keepAlive)
-
clientId
public String clientId()
-
clientId
public MqttConnectPacket clientId(String clientId)
-
cleanSession
public boolean cleanSession()
-
cleanSession
public MqttConnectPacket cleanSession(boolean cleanSession)
-
willTopic
public String willTopic()
-
willTopic
public MqttConnectPacket willTopic(String willTopic)
-
willMessage
public Data willMessage()
-
willMessage
public MqttConnectPacket willMessage(Data willMessage)
-
willQoS
public MqttQoS willQoS()
-
willQoS
public MqttConnectPacket willQoS(MqttQoS willQoS)
-
willRetain
public boolean willRetain()
-
willRetain
public MqttConnectPacket willRetain(boolean willRetain)
-
username
public String username()
-
username
public MqttConnectPacket username(String username)
-
password
public Data password()
-
password
public MqttConnectPacket password(Data password)
-
mqttEncoder
public Encoder<?,MqttConnectPacket> mqttEncoder(MqttEncoder mqtt)
- Specified by:
mqttEncoder
in classMqttPacket<Object>
-
encodeMqtt
public Encoder<?,MqttConnectPacket> encodeMqtt(OutputBuffer<?> output, MqttEncoder mqtt)
- Specified by:
encodeMqtt
in classMqttPacket<Object>
-
debug
public <T> Output<T> debug(Output<T> output)
Description copied from interface:Debug
Writes a developer readable, debug-formatted string representation of this object tooutput
.
-
create
public static MqttConnectPacket create(int packetFlags, String protocolName, int protocolLevel, int connectFlags, int keepAlive, String clientId, String willTopic, Data willMessage, String username, Data password)
-
create
public static MqttConnectPacket create(String clientId)
-
-