Configuration Reference

Version:3.3.0

Micronaut Mqtt Core Config Properties

🔗
Table 1. Configuration Properties for MqttConfigurationProperties
Property Type Description

mqtt.enabled

boolean

Enables Micronaut MQTT integration. Default value true

Micronaut Mqtt Hivemq Config Properties

🔗
Table 2. Configuration Properties for MqttClientConfigurationProperties
Property Type Description

mqtt.client.clean-start

boolean

Set true if a new sessions should be started for connection (v5 only).

mqtt.client.session-expiry-interval

java.lang.Long

The session expiry interval in seconds (v5 only).

mqtt.client.receive-maximum

java.lang.Integer

The maximum amount of not acknowledged publishes with QoS 1 or 2 the client accepts from the server concurrently (v5 only).

mqtt.client.maximum-packet-size

java.lang.Integer

The maximum packet size the client sends to the server (v5 only).

mqtt.client.topic-alias-maximum

java.lang.Integer

The maximum amount of topic aliases the client accepts from the server (v5 only).

mqtt.client.request-response-info

boolean

Whether the client requests response information from the server (v5 only).

mqtt.client.request-problem-info

boolean

Whether the client requests problem information from the server (v5 only).

mqtt.client.user-properties

java.util.Map

The user defined properties that should be sent for every message (v5 only).

mqtt.client.clean-session

boolean

Set true if a new session should be started for connection (v3 only).

mqtt.client.server-uri

java.net.URI

The URI of server to connect to as [schema]://[serverHost]:[serverPort].

mqtt.client.client-id

java.lang.String

The client identifier to use.

mqtt.client.mqtt-version

int

The version of the MQTT protocol to use (one of 3 or 5).

mqtt.client.connection-timeout

java.time.Duration

How long to wait for a connection to be established.

mqtt.client.manual-acks

boolean

True if you wish to manually acknowledge messages.

mqtt.client.password

byte

The password to use for MQTT connections.

mqtt.client.user-name

java.lang.String

The username to use for MQTT connections.

mqtt.client.max-reconnect-delay

long

The maximum delay for reconnecting in seconds.

mqtt.client.keep-alive-interval

int

The keep alive interval in seconds.

mqtt.client.automatic-reconnect

boolean

True if the client should attempt to reconnect to the server if the connection is lost.

mqtt.client.custom-web-socket-headers

java.util.Map

Custom headers that should be sent with web socket connections.

mqtt.client.https-hostname-verification-enabled

boolean

True if hostname verification should be used for https connections.

mqtt.client.sslhostname-verifier

javax.net.ssl.HostnameVerifier

The hostname verifier to use for hostname verification.

🔗
Table 3. Configuration Properties for MqttClientConfigurationProperties$WillMessage
Property Type Description

mqtt.client.will-message.topic

java.lang.String

mqtt.client.will-message.payload

byte

mqtt.client.will-message.qos

int

mqtt.client.will-message.retained

boolean

Micronaut Mqtt Ssl Config Properties

🔗
Table 4. Configuration Properties for MqttCertificateConfiguration
Property Type Description

mqtt.client.ssl.certificate-authority

Readable

mqtt.client.ssl.certificate

Readable

mqtt.client.ssl.private-key

Readable

mqtt.client.ssl.password

char

Micronaut Mqttv3 Config Properties

🔗
Table 5. Configuration Properties for MqttClientConfigurationProperties
Property Type Description

mqtt.client.password

char

mqtt.client.user-name

java.lang.String

mqtt.client.max-reconnect-delay

int

mqtt.client.keep-alive-interval

int

mqtt.client.mqtt-version

int

mqtt.client.max-inflight

int

mqtt.client.connection-timeout

int

mqtt.client.clean-session

boolean

mqtt.client.server-uris

java.lang.String

mqtt.client.automatic-reconnect

boolean

mqtt.client.executor-service-timeout

int

mqtt.client.custom-web-socket-headers

java.util.Properties

mqtt.client.server-uri

java.lang.String

mqtt.client.client-id

java.lang.String

mqtt.client.manual-acks

java.lang.Boolean

mqtt.client.socket-factory

javax.net.SocketFactory

mqtt.client.sslproperties

java.util.Properties

mqtt.client.https-hostname-verification-enabled

boolean

mqtt.client.sslhostname-verifier

javax.net.ssl.HostnameVerifier

🔗
Table 6. Configuration Properties for MqttClientConfigurationProperties$WillMessage
Property Type Description

mqtt.client.will-message.topic

java.lang.String

mqtt.client.will-message.payload

byte

mqtt.client.will-message.qos

int

mqtt.client.will-message.retained

boolean

Micronaut Mqttv5 Config Properties

🔗
Table 7. Configuration Properties for MqttClientConfigurationProperties$WillMessage
Property Type Description

mqtt.client.will-message-properties

org.eclipse.paho.mqttv5.common.packet.MqttProperties

mqtt.client.will-message.topic

java.lang.String

mqtt.client.will-message.payload

byte

mqtt.client.will-message.qos

int

mqtt.client.will-message.retained

boolean

mqtt.client.will-message.properties.valid-properties

java.lang.Byte

mqtt.client.will-message.properties.request-response-info

java.lang.Boolean

mqtt.client.will-message.properties.request-problem-info

java.lang.Boolean

mqtt.client.will-message.properties.will-delay-interval

java.lang.Long

mqtt.client.will-message.properties.receive-maximum

java.lang.Integer

mqtt.client.will-message.properties.maximum-qo-s

java.lang.Integer

mqtt.client.will-message.properties.maximum-packet-size

java.lang.Long

mqtt.client.will-message.properties.retain-available

boolean

mqtt.client.will-message.properties.assigned-client-identifier

java.lang.String

mqtt.client.will-message.properties.topic-alias-maximum

java.lang.Integer

mqtt.client.will-message.properties.topic-alias

java.lang.Integer

mqtt.client.will-message.properties.server-keep-alive

java.lang.Integer

mqtt.client.will-message.properties.response-info

java.lang.String

mqtt.client.will-message.properties.server-reference

java.lang.String

mqtt.client.will-message.properties.wildcard-subscriptions-available

boolean

mqtt.client.will-message.properties.subscription-identifiers-available

boolean

mqtt.client.will-message.properties.shared-subscription-available

boolean

mqtt.client.will-message.properties.session-expiry-interval

java.lang.Long

mqtt.client.will-message.properties.authentication-method

java.lang.String

mqtt.client.will-message.properties.authentication-data

byte

mqtt.client.will-message.properties.reason-string

java.lang.String

mqtt.client.will-message.properties.user-properties

java.util.List

mqtt.client.will-message.properties.payload-format

boolean

mqtt.client.will-message.properties.message-expiry-interval

java.lang.Long

mqtt.client.will-message.properties.content-type

java.lang.String

mqtt.client.will-message.properties.response-topic

java.lang.String

mqtt.client.will-message.properties.correlation-data

byte

mqtt.client.will-message.properties.subscription-identifiers

java.util.List

mqtt.client.will-message.properties.subscription-identifier

java.lang.Integer

🔗
Table 8. Configuration Properties for MqttClientConfigurationProperties
Property Type Description

mqtt.client.user-name

java.lang.String

mqtt.client.password

byte

mqtt.client.clean-start

boolean

mqtt.client.keep-alive-interval

int

mqtt.client.connection-timeout

int

mqtt.client.max-reconnect-delay

int

mqtt.client.server-uris

java.lang.String

mqtt.client.automatic-reconnect

boolean

mqtt.client.session-expiry-interval

java.lang.Long

mqtt.client.receive-maximum

java.lang.Integer

mqtt.client.maximum-packet-size

java.lang.Long

mqtt.client.topic-alias-maximum

java.lang.Integer

mqtt.client.request-response-info

boolean

mqtt.client.request-problem-info

boolean

mqtt.client.user-properties

java.util.List

mqtt.client.auth-method

java.lang.String

mqtt.client.auth-data

byte

mqtt.client.use-subscription-identifiers

boolean

mqtt.client.custom-web-socket-headers

java.util.Map

mqtt.client.send-reason-messages

boolean

mqtt.client.executor-service-timeout

int

mqtt.client.server-uri

java.lang.String

mqtt.client.client-id

java.lang.String

mqtt.client.socket-factory

javax.net.SocketFactory

mqtt.client.sslproperties

java.util.Properties

mqtt.client.https-hostname-verification-enabled

boolean

mqtt.client.sslhostname-verifier

javax.net.ssl.HostnameVerifier