B
- the type of the builder.@DoNotImplement public interface MqttClientTransportConfigBuilderBase<B extends MqttClientTransportConfigBuilderBase<B>>
MqttClientTransportConfig
.Modifier and Type | Method and Description |
---|---|
B |
localAddress(@Nullable InetAddress address)
Sets the optional local bind address.
|
B |
localAddress(@Nullable InetSocketAddress address)
Sets the optional
local bind address . |
B |
localAddress(@Nullable String address)
Sets the optional local bind address.
|
B |
localPort(int port)
Sets the optional local bind port.
|
B |
mqttConnectTimeout(long timeout,
@NotNull TimeUnit timeUnit)
|
MqttProxyConfigBuilder.Nested<? extends B> |
proxyConfig()
Fluent counterpart of
proxyConfig(MqttProxyConfig) . |
B |
proxyConfig(@Nullable MqttProxyConfig proxyConfig)
Sets the optional
proxy configuration . |
B |
serverAddress(@NotNull InetSocketAddress address)
Sets the
server address to connect to. |
B |
serverHost(@NotNull InetAddress host)
Sets the server host to connect to.
|
B |
serverHost(@NotNull String host)
Sets the server host to connect to.
|
B |
serverPort(int port)
Sets the server port to connect to.
|
B |
socketConnectTimeout(long timeout,
@NotNull TimeUnit timeUnit)
|
MqttClientSslConfigBuilder.Nested<? extends B> |
sslConfig()
Fluent counterpart of
sslConfig(MqttClientSslConfig) . |
B |
sslConfig(@Nullable MqttClientSslConfig sslConfig)
Sets the optional
secure transport configuration . |
B |
sslWithDefaultConfig()
Sets the
secure transport configuration to the default
configuration. |
MqttWebSocketConfigBuilder.Nested<? extends B> |
webSocketConfig()
Fluent counterpart of
webSocketConfig(MqttWebSocketConfig) . |
B |
webSocketConfig(@Nullable MqttWebSocketConfig webSocketConfig)
Sets the optional
WebSocket transport configuration . |
B |
webSocketWithDefaultConfig()
Sets the
WebSocket transport configuration to the default
configuration. |
@CheckReturnValue @NotNull B serverAddress(@NotNull @NotNull InetSocketAddress address)
server address
to connect to.address
- the server address.@CheckReturnValue @NotNull B serverHost(@NotNull @NotNull String host)
host
- the server host.@CheckReturnValue @NotNull B serverHost(@NotNull @NotNull InetAddress host)
host
- the server host.@CheckReturnValue @NotNull B serverPort(int port)
port
- the server port.@CheckReturnValue @NotNull B localAddress(@Nullable @Nullable InetSocketAddress address)
local bind address
.
The address must be resolved.
address
- the local bind address.@CheckReturnValue @NotNull B localAddress(@Nullable @Nullable String address)
The address must be resolvable.
address
- the local bind address.@CheckReturnValue @NotNull B localAddress(@Nullable @Nullable InetAddress address)
address
- the local bind address@CheckReturnValue @NotNull B localPort(int port)
port
- the local bind port.@CheckReturnValue @NotNull B sslWithDefaultConfig()
secure transport configuration
to the default
configuration.
This means that the systems default trust store, ciphers and protocols are used.
@CheckReturnValue @NotNull B sslConfig(@Nullable @Nullable MqttClientSslConfig sslConfig)
secure transport configuration
.sslConfig
- the secure transport configuration or null
to remove any previously set secure
transport configuration.@CheckReturnValue MqttClientSslConfigBuilder.Nested<? extends B> sslConfig()
sslConfig(MqttClientSslConfig)
.
Calling MqttClientSslConfigBuilder.Nested.applySslConfig()
on the returned builder has the effect of
extending the current secure transport configuration.
sslConfig(MqttClientSslConfig)
@CheckReturnValue @NotNull B webSocketWithDefaultConfig()
WebSocket transport configuration
to the default
configuration.@CheckReturnValue @NotNull B webSocketConfig(@Nullable @Nullable MqttWebSocketConfig webSocketConfig)
WebSocket transport configuration
.webSocketConfig
- the WebSocket transport configuration or null
to remove any previously set
WebSocket transport configuration.@CheckReturnValue MqttWebSocketConfigBuilder.Nested<? extends B> webSocketConfig()
webSocketConfig(MqttWebSocketConfig)
.
Calling MqttWebSocketConfigBuilder.Nested.applyWebSocketConfig()
on the returned builder has the effect
of extending the current WebSocket transport configuration.
webSocketConfig(MqttWebSocketConfig)
@CheckReturnValue @NotNull B proxyConfig(@Nullable @Nullable MqttProxyConfig proxyConfig)
proxy configuration
.proxyConfig
- the proxy configuration or null
to remove any previously set proxy
configuration.@CheckReturnValue MqttProxyConfigBuilder.Nested<? extends B> proxyConfig()
proxyConfig(MqttProxyConfig)
.
Calling MqttProxyConfigBuilder.Nested.applyProxyConfig()
on the returned builder has the effect of
extending the current proxy configuration.
proxyConfig(MqttProxyConfig)
@CheckReturnValue @NotNull B socketConnectTimeout(long timeout, @NotNull @NotNull TimeUnit timeUnit)
timeout for connecting the socket to the
server
.
The timeout in milliseconds must be in the range: [0, Integer.MAX_VALUE
].
timeout
- the timeout for connecting the socket to the server or 0
to disable the timeout.timeUnit
- the time unit of the given timeout (this timeout only supports millisecond precision).@CheckReturnValue @NotNull B mqttConnectTimeout(long timeout, @NotNull @NotNull TimeUnit timeUnit)
timeout between sending the Connect and
receiving the ConnAck message
.
The timeout in milliseconds must be in the range: [0, Integer.MAX_VALUE
].
timeout
- the timeout between sending the Connect and receiving the ConnAck message or 0
to
disable the timeout.timeUnit
- the time unit of the given timeout (this timeout only supports millisecond precision).