@Immutable public class Mqtt3ConnectView extends java.lang.Object implements Mqtt3Connect
Modifier and Type | Field and Description |
---|---|
static @NotNull Mqtt3ConnectView |
DEFAULT |
DEFAULT_CLEAN_SESSION, DEFAULT_KEEP_ALIVE, NO_KEEP_ALIVE
Modifier and Type | Method and Description |
---|---|
Mqtt3ConnectViewBuilder.Default |
extend()
Creates a builder for extending this Connect message.
|
@NotNull MqttConnect |
getDelegate() |
int |
getKeepAlive() |
@NotNull java.util.Optional<Mqtt3SimpleAuth> |
getSimpleAuth() |
@NotNull java.util.Optional<Mqtt3Publish> |
getWillPublish() |
boolean |
isCleanSession() |
static @NotNull Mqtt3ConnectView |
of(@NotNull MqttConnect delegate) |
@NotNull java.lang.String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
builder, getType
@NotNull public static final @NotNull Mqtt3ConnectView DEFAULT
@NotNull public static @NotNull Mqtt3ConnectView of(@NotNull @NotNull MqttConnect delegate)
public int getKeepAlive()
getKeepAlive
in interface Mqtt3Connect
public boolean isCleanSession()
isCleanSession
in interface Mqtt3Connect
true
an existing session is cleared.@NotNull public @NotNull java.util.Optional<Mqtt3SimpleAuth> getSimpleAuth()
getSimpleAuth
in interface Mqtt3Connect
@NotNull public @NotNull java.util.Optional<Mqtt3Publish> getWillPublish()
getWillPublish
in interface Mqtt3Connect
@NotNull public @NotNull MqttConnect getDelegate()
@NotNull public Mqtt3ConnectViewBuilder.Default extend()
Mqtt3Connect
extend
in interface Mqtt3Connect
@NotNull public @NotNull java.lang.String toString()
toString
in class java.lang.Object