@DoNotImplement public interface Mqtt5Connect extends Mqtt5Message
Modifier and Type | Field and Description |
---|---|
static boolean |
DEFAULT_CLEAN_START
The default whether a client wants to start a clean session.
|
static int |
DEFAULT_KEEP_ALIVE
The default keep alive in seconds a client wants to use.
|
static long |
DEFAULT_SESSION_EXPIRY_INTERVAL
The default session expiry interval in seconds a client wants to use.
|
static int |
NO_KEEP_ALIVE
The value that disables keep alive.
|
static long |
NO_SESSION_EXPIRY
The value that disables session expiry.
|
Modifier and Type | Method and Description |
---|---|
static @NotNull Mqtt5ConnectBuilder |
builder()
Creates a builder for a Connect message.
|
@NotNull Mqtt5ConnectBuilder |
extend()
Creates a builder for extending this Connect message.
|
@NotNull Optional<Mqtt5EnhancedAuthMechanism> |
getEnhancedAuthMechanism() |
int |
getKeepAlive() |
@NotNull Mqtt5ConnectRestrictions |
getRestrictions() |
long |
getSessionExpiryInterval() |
@NotNull Optional<Mqtt5SimpleAuth> |
getSimpleAuth() |
default @NotNull Mqtt5MessageType |
getType() |
@NotNull Mqtt5UserProperties |
getUserProperties() |
@NotNull Optional<Mqtt5WillPublish> |
getWillPublish() |
boolean |
isCleanStart() |
static final int NO_KEEP_ALIVE
static final int DEFAULT_KEEP_ALIVE
static final boolean DEFAULT_CLEAN_START
static final long DEFAULT_SESSION_EXPIRY_INTERVAL
static final long NO_SESSION_EXPIRY
@NotNull static @NotNull Mqtt5ConnectBuilder builder()
int getKeepAlive()
boolean isCleanStart()
long getSessionExpiryInterval()
DEFAULT_SESSION_EXPIRY_INTERVAL
. If it is NO_SESSION_EXPIRY
the session does not expire.@NotNull @NotNull Mqtt5ConnectRestrictions getRestrictions()
@NotNull @NotNull Optional<Mqtt5SimpleAuth> getSimpleAuth()
@NotNull @NotNull Optional<Mqtt5EnhancedAuthMechanism> getEnhancedAuthMechanism()
@NotNull @NotNull Optional<Mqtt5WillPublish> getWillPublish()
@NotNull @NotNull Mqtt5UserProperties getUserProperties()
@NotNull default @NotNull Mqtt5MessageType getType()
getType
in interface Mqtt5Message
@NotNull @NotNull Mqtt5ConnectBuilder extend()