@DoNotImplement public interface Mqtt3Connect extends Mqtt3Message
Modifier and Type | Field and Description |
---|---|
static boolean |
DEFAULT_CLEAN_SESSION
The default whether a client wants a clean session.
|
static int |
DEFAULT_KEEP_ALIVE
The default keep alive in seconds a client wants to use.
|
static int |
NO_KEEP_ALIVE
The value that disables keep alive.
|
Modifier and Type | Method and Description |
---|---|
static @NotNull Mqtt3ConnectBuilder |
builder()
Creates a builder for a Connect message.
|
@NotNull Mqtt3ConnectBuilder |
extend()
Creates a builder for extending this Connect message.
|
int |
getKeepAlive() |
@NotNull Optional<Mqtt3SimpleAuth> |
getSimpleAuth() |
default @NotNull Mqtt3MessageType |
getType() |
@NotNull Optional<Mqtt3Publish> |
getWillPublish() |
boolean |
isCleanSession() |
static final int NO_KEEP_ALIVE
static final int DEFAULT_KEEP_ALIVE
static final boolean DEFAULT_CLEAN_SESSION
@NotNull static @NotNull Mqtt3ConnectBuilder builder()
int getKeepAlive()
boolean isCleanSession()
true
an existing session is cleared.@NotNull @NotNull Optional<Mqtt3SimpleAuth> getSimpleAuth()
@NotNull @NotNull Optional<Mqtt3Publish> getWillPublish()
@NotNull default @NotNull Mqtt3MessageType getType()
getType
in interface Mqtt3Message
@NotNull @NotNull Mqtt3ConnectBuilder extend()