java.lang.Object
swim.mqtt.MqttPacket<T>
swim.mqtt.MqttPublishPacket<T>
- All Implemented Interfaces:
Debug
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T> MqttPublishPacket<T>
create
(int packetFlags, String topicName, int packetId, T payloadValue, Encoder<?, ?> payloadEncoder, int payloadSize) static MqttPublishPacket<Object>
static <T> MqttPublishPacket<T>
create
(String topicName, int packetId, T payloadValue, Encoder<?, ?> payloadEncoder, int payloadSize) static <T> MqttPublishPacket<T>
<T> Output<T>
Writes a developer readable, debug-formatted string representation of this object tooutput
.boolean
dup()
dup
(boolean dup) encodeMqtt
(OutputBuffer<?> output, MqttEncoder mqtt) boolean
int
hashCode()
boolean
mqttEncoder
(MqttEncoder mqtt) int
int
packetId()
packetId
(int packetId) int
<U> MqttPublishPacket<U>
payload
(ByteBuffer payloadValue) <U> MqttPublishPacket<U>
<U> MqttPublishPacket<U>
Encoder<?,
?> int
<U> MqttPublishPacket<U>
payloadValue
(U payloadValue) qos()
boolean
retain()
retain
(boolean retain) toString()
Methods inherited from class swim.mqtt.MqttPacket
encodeMqtt, mqttEncoder
-
Method Details
-
packetType
public int packetType()- Specified by:
packetType
in classMqttPacket<T>
-
packetFlags
public int packetFlags()- Specified by:
packetFlags
in classMqttPacket<T>
-
retain
public boolean retain() -
retain
-
qos
-
qos
-
dup
public boolean dup() -
dup
-
topicName
-
topicName
-
hasPacketId
public boolean hasPacketId() -
packetId
public int packetId() -
packetId
-
payloadValue
-
payloadValue
-
payloadEncoder
-
payloadSize
public int payloadSize() -
payload
public <U> MqttPublishPacket<U> payload(U payloadValue, Encoder<?, ?> payloadEncoder, int payloadSize) -
payload
-
payload
-
payload
-
payload
-
mqttEncoder
- Specified by:
mqttEncoder
in classMqttPacket<T>
-
encodeMqtt
- Specified by:
encodeMqtt
in classMqttPacket<T>
-
equals
-
hashCode
public int hashCode() -
debug
Description copied from interface:Debug
Writes a developer readable, debug-formatted string representation of this object tooutput
. -
toString
-
create
public static <T> MqttPublishPacket<T> create(int packetFlags, String topicName, int packetId, T payloadValue, Encoder<?, ?> payloadEncoder, int payloadSize) -
create
public static <T> MqttPublishPacket<T> create(String topicName, int packetId, T payloadValue, Encoder<?, ?> payloadEncoder, int payloadSize) -
create
public static <T> MqttPublishPacket<T> create(String topicName, T payloadValue, Encoder<?, ?> payloadEncoder, int payloadSize) -
create
-