- java.lang.Object
-
- swim.mqtt.MqttPacket<Object>
-
- swim.mqtt.MqttSubscribePacket
-
- All Implemented Interfaces:
Debug
public final class MqttSubscribePacket 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 MqttSubscribePacket packetFlags(int packetFlags)
-
packetId
public int packetId()
-
packetId
public MqttSubscribePacket packetId(int packetId)
-
subscriptions
public FingerTrieSeq<MqttSubscription> subscriptions()
-
subscriptions
public MqttSubscribePacket subscriptions(FingerTrieSeq<MqttSubscription> subscriptions)
-
subscriptions
public MqttSubscribePacket subscriptions(MqttSubscription... subscriptions)
-
subscription
public MqttSubscribePacket subscription(MqttSubscription subscription)
-
subscription
public MqttSubscribePacket subscription(String topicName, MqttQoS qos)
-
subscription
public MqttSubscribePacket subscription(String topicName)
-
mqttEncoder
public Encoder<?,MqttSubscribePacket> mqttEncoder(MqttEncoder mqtt)
- Specified by:
mqttEncoder
in classMqttPacket<Object>
-
encodeMqtt
public Encoder<?,MqttSubscribePacket> 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 MqttSubscribePacket create(int packetFlags, int packetId, FingerTrieSeq<MqttSubscription> subscriptions)
-
create
public static MqttSubscribePacket create(int packetId, FingerTrieSeq<MqttSubscription> subscriptions)
-
create
public static MqttSubscribePacket create(int packetId, MqttSubscription... subscriptions)
-
create
public static MqttSubscribePacket create(int packetId)
-
-