Interface Mqtt3Connect
- All Superinterfaces:
Mqtt3Message
MQTT 3 Connect message. This message is translated from and to an MQTT 3 CONNECT packet.
- Since:
- 1.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final booleanThe default whether a client wants a clean session.static final intThe default keep alive in seconds a client wants to use.static final intThe value that disables keep alive. -
Method Summary
Modifier and TypeMethodDescriptionstatic @NotNull Mqtt3ConnectBuilderbuilder()Creates a builder for a Connect message.extend()Creates a builder for extending this Connect message.intdefault @NotNull Mqtt3MessageTypegetType()boolean
-
Field Details
-
NO_KEEP_ALIVE
static final int NO_KEEP_ALIVEThe value that disables keep alive.- See Also:
-
DEFAULT_KEEP_ALIVE
static final int DEFAULT_KEEP_ALIVEThe default keep alive in seconds a client wants to use.- See Also:
-
DEFAULT_CLEAN_SESSION
static final boolean DEFAULT_CLEAN_SESSIONThe default whether a client wants a clean session.- See Also:
-
-
Method Details
-
builder
Creates a builder for a Connect message.- Returns:
- the created builder.
-
getKeepAlive
int getKeepAlive()- Returns:
- the keep alive in seconds the client wants to use.
-
isCleanSession
boolean isCleanSession()- Returns:
- whether the client wants a clean session. If
truean existing session is cleared.
-
getRestrictions
- Returns:
- the restrictions set from the client.
- Since:
- 1.3
-
getSimpleAuth
- Returns:
- the optional simple authentication and/or authorization related data of this Connect message.
-
getWillPublish
- Returns:
- the optional Will Publish of this Connect message.
-
getType
- Specified by:
getTypein interfaceMqtt3Message- Returns:
- the type of this MQTT message.
-
extend
Creates a builder for extending this Connect message.- Returns:
- the created builder.
-