@Immutable public class MqttConnect extends MqttMessageWithUserProperties implements Mqtt5Connect
MqttMessageWithUserProperties.WithReason
MqttMessage.WithId, MqttMessage.WithUserProperties
Modifier and Type | Field and Description |
---|---|
static @NotNull MqttConnect |
DEFAULT |
DEFAULT_CLEAN_START, DEFAULT_KEEP_ALIVE, DEFAULT_SESSION_EXPIRY_INTERVAL, NO_KEEP_ALIVE, NO_SESSION_EXPIRY
Constructor and Description |
---|
MqttConnect(int keepAlive,
boolean cleanStart,
long sessionExpiryInterval,
@NotNull MqttConnectRestrictions restrictions,
@Nullable MqttSimpleAuth simpleAuth,
@Nullable Mqtt5EnhancedAuthMechanism enhancedAuthMechanism,
@Nullable MqttWillPublish willPublish,
@NotNull MqttUserPropertiesImpl userProperties) |
getUserProperties, partialEquals, partialHashCode
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
builder, getType, getUserProperties
@NotNull public static final @NotNull MqttConnect DEFAULT
public MqttConnect(int keepAlive, boolean cleanStart, long sessionExpiryInterval, @NotNull @NotNull MqttConnectRestrictions restrictions, @Nullable @Nullable MqttSimpleAuth simpleAuth, @Nullable @Nullable Mqtt5EnhancedAuthMechanism enhancedAuthMechanism, @Nullable @Nullable MqttWillPublish willPublish, @NotNull @NotNull MqttUserPropertiesImpl userProperties)
public int getKeepAlive()
getKeepAlive
in interface Mqtt5Connect
public boolean isCleanStart()
isCleanStart
in interface Mqtt5Connect
public long getSessionExpiryInterval()
getSessionExpiryInterval
in interface Mqtt5Connect
Mqtt5Connect.DEFAULT_SESSION_EXPIRY_INTERVAL
. If it is Mqtt5Connect.NO_SESSION_EXPIRY
the session does not expire.@NotNull public @NotNull MqttConnectRestrictions getRestrictions()
getRestrictions
in interface Mqtt5Connect
@NotNull public @NotNull java.util.Optional<Mqtt5SimpleAuth> getSimpleAuth()
getSimpleAuth
in interface Mqtt5Connect
@Nullable public @Nullable MqttSimpleAuth getRawSimpleAuth()
@NotNull public @NotNull java.util.Optional<Mqtt5EnhancedAuthMechanism> getEnhancedAuthMechanism()
getEnhancedAuthMechanism
in interface Mqtt5Connect
@Nullable public @Nullable Mqtt5EnhancedAuthMechanism getRawEnhancedAuthMechanism()
@NotNull public @NotNull java.util.Optional<Mqtt5WillPublish> getWillPublish()
getWillPublish
in interface Mqtt5Connect
@Nullable public @Nullable MqttWillPublish getRawWillPublish()
@NotNull public MqttConnectBuilder.Default extend()
Mqtt5Connect
extend
in interface Mqtt5Connect
@NotNull public @NotNull MqttConnect setDefaults(@NotNull @NotNull MqttClientConfig clientConfig)
@NotNull public @NotNull MqttStatefulConnect createStateful(@NotNull @NotNull MqttClientIdentifierImpl clientIdentifier, @Nullable @Nullable MqttEnhancedAuth enhancedAuth)
@NotNull protected @NotNull java.lang.String toAttributeString()
toAttributeString
in class MqttMessageWithUserProperties
@NotNull public @NotNull java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(@Nullable @Nullable java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object