@DoNotImplement public interface Mqtt3Publish extends Mqtt3Message
| Modifier and Type | Field and Description |
|---|---|
static @NotNull MqttQos |
DEFAULT_QOS
Default
QoS level of a Publish message. |
| Modifier and Type | Method and Description |
|---|---|
void |
acknowledge()
Acknowledges this Publish message.
|
static @NotNull Mqtt3PublishBuilder |
builder()
Creates a builder for a Publish message.
|
Mqtt3PublishBuilder.Complete |
extend()
Creates a builder for extending this Publish message.
|
@NotNull Optional<ByteBuffer> |
getPayload() |
byte[] |
getPayloadAsBytes() |
@NotNull MqttQos |
getQos() |
@NotNull MqttTopic |
getTopic() |
default @NotNull Mqtt3MessageType |
getType() |
boolean |
isRetain() |
@NotNull static final @NotNull MqttQos DEFAULT_QOS
QoS level of a Publish message. It is chosen as MqttQos.AT_MOST_ONCE as the QoS
level should be explicitly specified if special delivery guarantees are needed.@NotNull static @NotNull Mqtt3PublishBuilder builder()
@NotNull @NotNull MqttTopic getTopic()
@NotNull @NotNull Optional<ByteBuffer> getPayload()
byte[] getPayloadAsBytes()
@NotNull @NotNull MqttQos getQos()
boolean isRetain()
void acknowledge()
UnsupportedOperationException - if manual acknowledgement is not enabled.IllegalStateException - if the message is acknowledged more than once.@NotNull default @NotNull Mqtt3MessageType getType()
getType in interface Mqtt3MessageMqtt3PublishBuilder.Complete extend()