Package com.hivemq.client.mqtt.mqtt3
Interface Mqtt3ClientBuilder
- All Superinterfaces:
MqttClientBuilderBase<Mqtt3ClientBuilder>
@DoNotImplement
public interface Mqtt3ClientBuilder
extends MqttClientBuilderBase<Mqtt3ClientBuilder>
Builder for an
Mqtt3Client.- Since:
- 1.0
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds theMqtt3Client.Builds theMqtt3AsyncClient.Builds theMqtt3BlockingClient.buildRx()Builds theMqtt3RxClient.Fluent counterpart ofsimpleAuth(Mqtt3SimpleAuth).simpleAuth(@Nullable Mqtt3SimpleAuth simpleAuth) Sets the optionalsimple authentication and/or authorization related data.Fluent counterpart ofwillPublish(Mqtt3Publish).willPublish(@Nullable Mqtt3Publish willPublish) Sets the optionalWill Publish.Methods inherited from interface com.hivemq.client.mqtt.MqttClientBuilderBase
addConnectedListener, addDisconnectedListener, automaticReconnect, automaticReconnect, automaticReconnectWithDefaultConfig, executorConfig, executorConfig, identifier, identifier, serverAddress, serverHost, serverHost, serverPort, sslConfig, sslConfig, sslWithDefaultConfig, transportConfig, transportConfig, useSsl, useSsl, useSslWithDefaultConfig, useWebSocket, useWebSocket, useWebSocketWithDefaultConfig, webSocketConfig, webSocketConfig, webSocketWithDefaultConfig
-
Method Details
-
simpleAuth
@CheckReturnValue @NotNull @NotNull Mqtt3ClientBuilder simpleAuth(@Nullable @Nullable Mqtt3SimpleAuth simpleAuth) Sets the optionalsimple authentication and/or authorization related data.- Parameters:
simpleAuth- the simple auth related data ornullto remove any previously set simple auth related data.- Returns:
- the builder.
- Since:
- 1.1
-
simpleAuth
Fluent counterpart ofsimpleAuth(Mqtt3SimpleAuth).Calling
Mqtt3SimpleAuthBuilder.Nested.Complete.applySimpleAuth()on the returned builder has the same effect as callingsimpleAuth(Mqtt3SimpleAuth)with the result ofMqtt3SimpleAuthBuilder.Complete.build().- Returns:
- the fluent builder for the simple auth related data.
- Since:
- 1.1
- See Also:
-
willPublish
@CheckReturnValue @NotNull @NotNull Mqtt3ClientBuilder willPublish(@Nullable @Nullable Mqtt3Publish willPublish) Sets the optionalWill Publish.- Parameters:
willPublish- the Will Publish ornullto remove any previously set Will Publish.- Returns:
- the builder.
- Since:
- 1.1
-
willPublish
@CheckReturnValue @NotNull Mqtt3WillPublishBuilder.Nested<? extends Mqtt3ClientBuilder> willPublish()Fluent counterpart ofwillPublish(Mqtt3Publish).Calling
Mqtt3WillPublishBuilder.Nested.Complete.applyWillPublish()on the returned builder has the same effect as callingwillPublish(Mqtt3Publish)with the result ofMqtt3WillPublishBuilder.Complete.build().- Returns:
- the fluent builder for the Will Publish.
- Since:
- 1.1
- See Also:
-
build
Builds theMqtt3Client.- Returns:
- the built
Mqtt3Client.
-
buildRx
Builds theMqtt3RxClient.- Returns:
- the built
Mqtt3RxClient.
-
buildAsync
Builds theMqtt3AsyncClient.- Returns:
- the built
Mqtt3AsyncClient.
-
buildBlocking
Builds theMqtt3BlockingClient.- Returns:
- the built
Mqtt3BlockingClient.
-