- java.lang.Object
-
- swim.mqtt.MqttPacket<Object>
-
- swim.mqtt.MqttConnAckPacket
-
- All Implemented Interfaces:
Debug
public final class MqttConnAckPacket extends MqttPacket<Object> implements Debug
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static MqttConnAckPacket
accepted()
int
connectCode()
int
connectFlags()
MqttConnStatus
connectStatus()
MqttConnAckPacket
connectStatus(MqttConnStatus connectStatus)
static MqttConnAckPacket
create(int packetFlags, int connectFlags, int connectCode)
static MqttConnAckPacket
create(MqttConnStatus connectStatus)
<T> Output<T>
debug(Output<T> output)
Writes a developer readable, debug-formatted string representation of this object tooutput
.Encoder<?,MqttConnAckPacket>
encodeMqtt(OutputBuffer<?> output, MqttEncoder mqtt)
boolean
equals(Object other)
int
hashCode()
Encoder<?,MqttConnAckPacket>
mqttEncoder(MqttEncoder mqtt)
int
packetFlags()
MqttConnAckPacket
packetFlags(int packetFlags)
int
packetType()
boolean
sessionPresent()
MqttConnAckPacket
sessionPresent(boolean sessionPresent)
String
toString()
-
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 MqttConnAckPacket packetFlags(int packetFlags)
-
connectFlags
public int connectFlags()
-
connectCode
public int connectCode()
-
sessionPresent
public boolean sessionPresent()
-
sessionPresent
public MqttConnAckPacket sessionPresent(boolean sessionPresent)
-
connectStatus
public MqttConnStatus connectStatus()
-
connectStatus
public MqttConnAckPacket connectStatus(MqttConnStatus connectStatus)
-
mqttEncoder
public Encoder<?,MqttConnAckPacket> mqttEncoder(MqttEncoder mqtt)
- Specified by:
mqttEncoder
in classMqttPacket<Object>
-
encodeMqtt
public Encoder<?,MqttConnAckPacket> 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
.
-
accepted
public static MqttConnAckPacket accepted()
-
create
public static MqttConnAckPacket create(int packetFlags, int connectFlags, int connectCode)
-
create
public static MqttConnAckPacket create(MqttConnStatus connectStatus)
-
-