B - the type of the builder.@DoNotImplement public interface Mqtt5ConnectBuilderBase<B extends Mqtt5ConnectBuilderBase<B>>
Mqtt5Connect.@CheckReturnValue @NotNull B keepAlive(int keepAlive)
keep alive in seconds.
The value must be in the range of an unsigned short: [0, 65_535].
keepAlive - the keep alive in seconds.@CheckReturnValue @NotNull B noKeepAlive()
keep alive by setting it to Mqtt5Connect.NO_KEEP_ALIVE.@CheckReturnValue @NotNull B cleanStart(boolean cleanStart)
starts a clean session.cleanStart - whether the client starts a clean session.@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 restrictions(@NotNull @NotNull Mqtt5ConnectRestrictions restrictions)
restrictions from the client.restrictions - the restrictions from the client.@CheckReturnValue Mqtt5ConnectRestrictionsBuilder.Nested<? extends B> restrictions()
restrictions(Mqtt5ConnectRestrictions).
Calling Mqtt5ConnectRestrictionsBuilder.Nested.applyRestrictions() on the returned builder has the effect
of extending the current restrictions.
restrictions(Mqtt5ConnectRestrictions)@CheckReturnValue @NotNull B simpleAuth(@Nullable @Nullable Mqtt5SimpleAuth simpleAuth)
simple authentication and/or authorization related data.simpleAuth - the simple auth related data or null to remove any previously set simple auth
related data.@CheckReturnValue Mqtt5SimpleAuthBuilder.Nested<? extends B> simpleAuth()
simpleAuth(Mqtt5SimpleAuth).
Calling Mqtt5SimpleAuthBuilder.Nested.Complete#applySimpleAuth() on the returned builder has the same
effect as calling simpleAuth(Mqtt5SimpleAuth) with the result of Mqtt5SimpleAuthBuilder.Complete#build().
simpleAuth(Mqtt5SimpleAuth)@CheckReturnValue @NotNull B enhancedAuth(@Nullable @Nullable Mqtt5EnhancedAuthMechanism enhancedAuthMechanism)
enhancedAuthMechanism - the enhanced auth mechanism or null to remove any previously set
enhanced auth mechanism.@CheckReturnValue @NotNull B willPublish(@Nullable @Nullable Mqtt5Publish willPublish)
Will Publish.willPublish - the Will Publish or null to remove any previously set Will Publish.@CheckReturnValue Mqtt5WillPublishBuilder.Nested<? extends B> willPublish()
willPublish(Mqtt5Publish).
Calling Mqtt5WillPublishBuilder.Nested.Complete#applyWillPublish() on the returned builder has the same
effect as calling willPublish(Mqtt5Publish) with the result of Mqtt5WillPublishBuilder.Complete#build().
willPublish(Mqtt5Publish)@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)