@Immutable public class MqttWillPublish extends MqttPublish implements Mqtt5WillPublish
MqttMessageWithUserProperties.WithReason
MqttMessage.WithId, MqttMessage.WithUserProperties
NO_MESSAGE_EXPIRY
DEFAULT_DELAY_INTERVAL
DEFAULT_QOS
Constructor and Description |
---|
MqttWillPublish(@NotNull MqttTopicImpl topic,
@Nullable java.nio.ByteBuffer payload,
@NotNull MqttQos qos,
boolean isRetain,
long messageExpiryInterval,
@Nullable Mqtt5PayloadFormatIndicator payloadFormatIndicator,
@Nullable MqttUtf8StringImpl contentType,
@Nullable MqttTopicImpl responseTopic,
@Nullable java.nio.ByteBuffer correlationData,
@NotNull MqttUserPropertiesImpl userProperties,
long delayInterval) |
Modifier and Type | Method and Description |
---|---|
@NotNull MqttWillPublish |
asWill()
Transforms this Publish message into a Will Publish with the same properties.
|
protected boolean |
canEqual(@Nullable java.lang.Object o) |
boolean |
equals(@Nullable java.lang.Object o) |
MqttPublishBuilder.WillDefault |
extendAsWill()
Creates a builder for extending this Will Publish.
|
long |
getDelayInterval() |
int |
hashCode() |
protected @NotNull java.lang.String |
toAttributeString() |
@NotNull java.lang.String |
toString() |
createStateful, createStateful, extend, getContentType, getCorrelationData, getMessageExpiryInterval, getPayload, getPayloadAsBytes, getPayloadFormatIndicator, getQos, getRawContentType, getRawCorrelationData, getRawMessageExpiryInterval, getRawPayload, getRawPayloadFormatIndicator, getRawResponseTopic, getResponseTopic, getTopic, isRetain
getUserProperties, partialEquals, partialHashCode
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
builder
extend, getContentType, getCorrelationData, getMessageExpiryInterval, getPayload, getPayloadAsBytes, getPayloadFormatIndicator, getQos, getResponseTopic, getTopic, getType, getUserProperties, isRetain
public MqttWillPublish(@NotNull @NotNull MqttTopicImpl topic, @Nullable @Nullable java.nio.ByteBuffer payload, @NotNull @NotNull MqttQos qos, boolean isRetain, long messageExpiryInterval, @Nullable @Nullable Mqtt5PayloadFormatIndicator payloadFormatIndicator, @Nullable @Nullable MqttUtf8StringImpl contentType, @Nullable @Nullable MqttTopicImpl responseTopic, @Nullable @Nullable java.nio.ByteBuffer correlationData, @NotNull @NotNull MqttUserPropertiesImpl userProperties, long delayInterval)
public long getDelayInterval()
getDelayInterval
in interface Mqtt5WillPublish
Mqtt5WillPublish.DEFAULT_DELAY_INTERVAL
.@NotNull public @NotNull MqttWillPublish asWill()
Mqtt5Publish
asWill
in interface Mqtt5Publish
asWill
in class MqttPublish
@NotNull public MqttPublishBuilder.WillDefault extendAsWill()
Mqtt5WillPublish
extendAsWill
in interface Mqtt5WillPublish
@NotNull protected @NotNull java.lang.String toAttributeString()
toAttributeString
in class MqttPublish
@NotNull public @NotNull java.lang.String toString()
toString
in class MqttPublish
public boolean equals(@Nullable @Nullable java.lang.Object o)
equals
in class MqttPublish
protected boolean canEqual(@Nullable @Nullable java.lang.Object o)
canEqual
in class MqttPublish
public int hashCode()
hashCode
in class MqttPublish