B - the type of the builder.@DoNotImplement public interface Mqtt5DisconnectBuilderBase<B extends Mqtt5DisconnectBuilderBase<B>>
Mqtt5Disconnect.| Modifier and Type | Method and Description |
|---|---|
B |
noSessionExpiry()
Disables the
session expiry by setting it to Mqtt5Connect.NO_SESSION_EXPIRY. |
B |
reasonCode(@NotNull Mqtt5DisconnectReasonCode reasonCode)
Sets the
Reason Code. |
B |
reasonString(@Nullable MqttUtf8String reasonString)
Sets the optional
Reason String. |
B |
reasonString(@Nullable String reasonString)
Sets the optional
Reason String. |
B |
serverReference(@Nullable MqttUtf8String serverReference)
Sets the optional
server reference. |
B |
serverReference(@Nullable String serverReference)
Sets the optional
server reference. |
B |
sessionExpiryInterval(long sessionExpiryInterval)
Sets the
session expiry interval in seconds. |
Mqtt5UserPropertiesBuilder.Nested<? extends B> |
userProperties()
Fluent counterpart of
userProperties(Mqtt5UserProperties). |
B |
userProperties(@NotNull Mqtt5UserProperties userProperties)
Sets the
User Properties. |
@CheckReturnValue @NotNull B reasonCode(@NotNull @NotNull Mqtt5DisconnectReasonCode reasonCode)
Reason Code.reasonCode - the Reason Code.@CheckReturnValue @NotNull B sessionExpiryInterval(long sessionExpiryInterval)
session expiry interval in seconds.
The value must be in the range of an unsigned int: [0, 4_294_967_295].
sessionExpiryInterval - the session expiry interval in seconds.@CheckReturnValue @NotNull B noSessionExpiry()
session expiry by setting it to Mqtt5Connect.NO_SESSION_EXPIRY.@CheckReturnValue @NotNull B serverReference(@Nullable @Nullable String serverReference)
server reference.serverReference - the server reference.@CheckReturnValue @NotNull B serverReference(@Nullable @Nullable MqttUtf8String serverReference)
server reference.serverReference - the server reference.@CheckReturnValue @NotNull B reasonString(@Nullable @Nullable String reasonString)
Reason String.reasonString - the Reason String.@CheckReturnValue @NotNull B reasonString(@Nullable @Nullable MqttUtf8String reasonString)
Reason String.reasonString - the Reason String.@CheckReturnValue @NotNull B userProperties(@NotNull @NotNull Mqtt5UserProperties userProperties)
User Properties.userProperties - the User Properties.@CheckReturnValue Mqtt5UserPropertiesBuilder.Nested<? extends B> userProperties()
userProperties(Mqtt5UserProperties).
Calling Mqtt5UserPropertiesBuilder.Nested#applyUserProperties() on the returned builder has the effect of
extending the current User Properties.
userProperties(Mqtt5UserProperties)