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 TypeMethodDescription@NotNull Mqtt3Clientbuild()Builds theMqtt3Client.@NotNull Mqtt3AsyncClientBuilds theMqtt3AsyncClient.@NotNull Mqtt3BlockingClientBuilds theMqtt3BlockingClient.@NotNull Mqtt3RxClientbuildRx()Builds theMqtt3RxClient.@NotNull Mqtt3SimpleAuthBuilder.Nested<? extends Mqtt3ClientBuilder> Fluent counterpart ofsimpleAuth(Mqtt3SimpleAuth).@NotNull Mqtt3ClientBuildersimpleAuth(@Nullable Mqtt3SimpleAuth simpleAuth) Sets the optionalsimple authentication and/or authorization related data.@NotNull Mqtt3WillPublishBuilder.Nested<? extends Mqtt3ClientBuilder> Fluent counterpart ofwillPublish(Mqtt3Publish).@NotNull Mqtt3ClientBuilderwillPublish(@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.
-