@Immutable public class MqttConnAck extends MqttMessageWithUserProperties.WithReason.WithCode<Mqtt5ConnAckReasonCode> implements Mqtt5ConnAck
MqttMessageWithUserProperties.WithReason.WithCode.WithId<R extends Mqtt5ReasonCode>
MqttMessageWithUserProperties.WithReason.WithCode<R extends Mqtt5ReasonCode>, MqttMessageWithUserProperties.WithReason.WithCodesAndId<R extends Mqtt5ReasonCode>
MqttMessageWithUserProperties.WithReason
MqttMessage.WithUserProperties
Modifier and Type | Field and Description |
---|---|
static int |
KEEP_ALIVE_FROM_CONNECT |
static long |
SESSION_EXPIRY_INTERVAL_FROM_CONNECT |
Constructor and Description |
---|
MqttConnAck(@NotNull Mqtt5ConnAckReasonCode reasonCode,
boolean sessionPresent,
long sessionExpiryInterval,
int serverKeepAlive,
@Nullable MqttClientIdentifierImpl assignedClientIdentifier,
@Nullable Mqtt5EnhancedAuth enhancedAuth,
@NotNull MqttConnAckRestrictions restrictions,
@Nullable MqttUtf8StringImpl responseInformation,
@Nullable MqttUtf8StringImpl serverReference,
@Nullable MqttUtf8StringImpl reasonString,
@NotNull MqttUserPropertiesImpl userProperties) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(@Nullable java.lang.Object o) |
@NotNull java.util.Optional<MqttClientIdentifier> |
getAssignedClientIdentifier() |
@NotNull java.util.Optional<Mqtt5EnhancedAuth> |
getEnhancedAuth() |
@Nullable MqttClientIdentifierImpl |
getRawAssignedClientIdentifier() |
@Nullable Mqtt5EnhancedAuth |
getRawEnhancedAuth() |
int |
getRawServerKeepAlive() |
long |
getRawSessionExpiryInterval() |
@NotNull java.util.Optional<MqttUtf8String> |
getResponseInformation() |
@NotNull MqttConnAckRestrictions |
getRestrictions() |
@NotNull java.util.OptionalInt |
getServerKeepAlive() |
@NotNull java.util.Optional<MqttUtf8String> |
getServerReference() |
@NotNull java.util.OptionalLong |
getSessionExpiryInterval() |
int |
hashCode() |
boolean |
isSessionPresent() |
protected @NotNull java.lang.String |
toAttributeString() |
@NotNull java.lang.String |
toString() |
getReasonCode, partialEquals, partialHashCode
getRawReasonString, getReasonString, partialEquals
getUserProperties, partialEquals
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getReasonCode, getReasonString, getType, getUserProperties
public static final long SESSION_EXPIRY_INTERVAL_FROM_CONNECT
public static final int KEEP_ALIVE_FROM_CONNECT
public MqttConnAck(@NotNull @NotNull Mqtt5ConnAckReasonCode reasonCode, boolean sessionPresent, long sessionExpiryInterval, int serverKeepAlive, @Nullable @Nullable MqttClientIdentifierImpl assignedClientIdentifier, @Nullable @Nullable Mqtt5EnhancedAuth enhancedAuth, @NotNull @NotNull MqttConnAckRestrictions restrictions, @Nullable @Nullable MqttUtf8StringImpl responseInformation, @Nullable @Nullable MqttUtf8StringImpl serverReference, @Nullable @Nullable MqttUtf8StringImpl reasonString, @NotNull @NotNull MqttUserPropertiesImpl userProperties)
public boolean isSessionPresent()
isSessionPresent
in interface Mqtt5ConnAck
@NotNull public @NotNull java.util.OptionalLong getSessionExpiryInterval()
getSessionExpiryInterval
in interface Mqtt5ConnAck
public long getRawSessionExpiryInterval()
@NotNull public @NotNull java.util.OptionalInt getServerKeepAlive()
getServerKeepAlive
in interface Mqtt5ConnAck
public int getRawServerKeepAlive()
@NotNull public @NotNull java.util.Optional<MqttClientIdentifier> getAssignedClientIdentifier()
getAssignedClientIdentifier
in interface Mqtt5ConnAck
@Nullable public @Nullable MqttClientIdentifierImpl getRawAssignedClientIdentifier()
@NotNull public @NotNull java.util.Optional<Mqtt5EnhancedAuth> getEnhancedAuth()
getEnhancedAuth
in interface Mqtt5ConnAck
@Nullable public @Nullable Mqtt5EnhancedAuth getRawEnhancedAuth()
@NotNull public @NotNull MqttConnAckRestrictions getRestrictions()
getRestrictions
in interface Mqtt5ConnAck
@NotNull public @NotNull java.util.Optional<MqttUtf8String> getResponseInformation()
getResponseInformation
in interface Mqtt5ConnAck
@NotNull public @NotNull java.util.Optional<MqttUtf8String> getServerReference()
getServerReference
in interface Mqtt5ConnAck
@NotNull protected @NotNull java.lang.String toAttributeString()
toAttributeString
in class MqttMessageWithUserProperties.WithReason
@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