Interface Mqtt5DisconnectBuilderBase<B extends Mqtt5DisconnectBuilderBase<B>>
- Type Parameters:
B- the type of the builder.
- All Known Subinterfaces:
Mqtt5DisconnectBuilder,Mqtt5DisconnectBuilder.Nested<P>,Mqtt5DisconnectBuilder.Send<P>,Mqtt5DisconnectBuilder.SendVoid
@DoNotImplement
public interface Mqtt5DisconnectBuilderBase<B extends Mqtt5DisconnectBuilderBase<B>>
Builder base for a
Mqtt5Disconnect.- Since:
- 1.0
-
Method Summary
Modifier and TypeMethodDescriptionDisables thesession expiryby setting it toMqtt5Connect.NO_SESSION_EXPIRY.reasonCode(@NotNull Mqtt5DisconnectReasonCode reasonCode) Sets theReason Code.reasonString(@Nullable MqttUtf8String reasonString) Sets the optionalReason String.reasonString(@Nullable String reasonString) Sets the optionalReason String.serverReference(@Nullable MqttUtf8String serverReference) Sets the optionalserver reference.serverReference(@Nullable String serverReference) Sets the optionalserver reference.sessionExpiryInterval(long sessionExpiryInterval) Sets thesession expiry intervalin seconds.@NotNull Mqtt5UserPropertiesBuilder.Nested<? extends B> Fluent counterpart ofuserProperties(Mqtt5UserProperties).userProperties(@NotNull Mqtt5UserProperties userProperties) Sets theUser Properties.
-
Method Details
-
reasonCode
Sets theReason Code.- Parameters:
reasonCode- the Reason Code.- Returns:
- the builder.
-
sessionExpiryInterval
Sets thesession expiry intervalin seconds.The value must be in the range of an unsigned int: [0, 4_294_967_295].
- Parameters:
sessionExpiryInterval- the session expiry interval in seconds.- Returns:
- the builder.
-
noSessionExpiry
Disables thesession expiryby setting it toMqtt5Connect.NO_SESSION_EXPIRY.- Returns:
- the builder.
-
serverReference
Sets the optionalserver reference.- Parameters:
serverReference- the server reference.- Returns:
- the builder.
-
serverReference
Sets the optionalserver reference.- Parameters:
serverReference- the server reference.- Returns:
- the builder.
-
reasonString
Sets the optionalReason String.- Parameters:
reasonString- the Reason String.- Returns:
- the builder.
-
reasonString
Sets the optionalReason String.- Parameters:
reasonString- the Reason String.- Returns:
- the builder.
-
userProperties
Sets theUser Properties.- Parameters:
userProperties- the User Properties.- Returns:
- the builder.
-
userProperties
Fluent counterpart ofuserProperties(Mqtt5UserProperties).Calling
Mqtt5UserPropertiesBuilder.Nested.applyUserProperties()on the returned builder has the effect ofextendingthe current User Properties.- Returns:
- the fluent builder for the User Properties.
- See Also:
-