Interface Mqtt5ClientConfig
- All Superinterfaces:
MqttClientConfig
Mqtt5Client.- Since:
- 1.0
-
Method Summary
Modifier and TypeMethodDescriptionReturns the optional connection configuration of the client.Returns the optional enhanced authentication and/or authorization mechanism of the client.Returns the optional simple authentication and/or authorization related data of the client.Returns the optional Will Publish of the client.Methods inherited from interface com.hivemq.client.mqtt.MqttClientConfig
getAutomaticReconnect, getClientIdentifier, getConnectedListeners, getDisconnectedListeners, getExecutorConfig, getMqttVersion, getServerAddress, getServerHost, getServerPort, getSslConfig, getState, getTransportConfig, getWebSocketConfig
-
Method Details
-
getConnectionConfig
Description copied from interface:MqttClientConfigReturns the optional connection configuration of the client. It is present if the client is connected and has received the ConnAck message.- Specified by:
getConnectionConfigin interfaceMqttClientConfig- Returns:
- the optional connection configuration of the client.
-
getAdvancedConfig
- Returns:
- the advanced configuration of the client.
-
getSimpleAuth
Returns the optional simple authentication and/or authorization related data of the client.It is used as default if
Mqtt5Connect.simpleAuthis not set during connect.Keep in mind that the data is stored with the client in memory. If you want to use it only during connect or if you use a different token for each connection please set
Mqtt5Connect.simpleAuthinstead.- Returns:
- the optional simple authentication and/or authorization related data of the client.
- Since:
- 1.1
-
getEnhancedAuthMechanism
Returns the optional enhanced authentication and/or authorization mechanism of the client.It is used as default if
Mqtt5Connect.enhancedAuthMechanismis not set during connect.Keep in mind that the mechanism is stored with the client in memory. If you use a different mechanism for each connection please set
Mqtt5Connect.enhancedAuthMechanisminstead.- Returns:
- the optional enhanced authentication and/or authorization mechanism of the client.
- Since:
- 1.1
-
getWillPublish
Returns the optional Will Publish of the client.It is used as default if
Mqtt5Connect.willPublishis not set during connect.Keep in mind that the Will Publish is stored with the client in memory. If you use a different Will Publish for each connection please set
Mqtt5Connect.willPublishinstead.- Returns:
- the optional Will Publish of the client.
- Since:
- 1.1
-