M
- the type of the stateless MQTT message.public abstract class MqttStatefulMessage<M extends MqttMessageWithUserProperties> extends java.lang.Object implements MqttMessage.WithUserProperties
Modifier and Type | Class and Description |
---|---|
static class |
MqttStatefulMessage.WithId<M extends MqttMessageWithUserProperties>
Base class for MQTT messages with a packet identifier and other state-specific data.
|
MqttMessage.WithUserProperties
Modifier | Constructor and Description |
---|---|
protected |
MqttStatefulMessage(M statelessMessage) |
Modifier and Type | Method and Description |
---|---|
@NotNull Mqtt5MessageType |
getType() |
@NotNull MqttUserPropertiesImpl |
getUserProperties() |
M |
stateless() |
protected @NotNull java.lang.String |
toAttributeString() |
protected MqttStatefulMessage(@NotNull M statelessMessage)
@NotNull public @NotNull Mqtt5MessageType getType()
getType
in interface Mqtt5Message
@NotNull public @NotNull MqttUserPropertiesImpl getUserProperties()
getUserProperties
in interface MqttMessage.WithUserProperties
@NotNull public M stateless()
@NotNull protected @NotNull java.lang.String toAttributeString()