@DoNotImplement public interface MqttClientTransportConfigBuilderBase<B extends MqttClientTransportConfigBuilderBase<B>>
MqttClientTransportConfig
.Modifier and Type | Method and Description |
---|---|
B |
serverAddress(@NotNull java.net.InetSocketAddress address)
Sets the
server address to connect to. |
B |
serverHost(@NotNull java.net.InetAddress host)
Sets the server host to connect to.
|
B |
serverHost(@NotNull java.lang.String host)
Sets the server host to connect to.
|
B |
serverPort(int port)
Sets the server port to connect to.
|
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. |
@NotNull B serverAddress(@NotNull @NotNull java.net.InetSocketAddress address)
server address
to connect to.address
- the server address.@NotNull B serverHost(@NotNull @NotNull java.lang.String host)
host
- the server host.@NotNull B serverHost(@NotNull @NotNull java.net.InetAddress host)
host
- the server host.@NotNull B serverPort(int port)
port
- the server port.@NotNull B sslWithDefaultConfig()
secure transport configuration
to the default
configuration.
This means that the systems default trust store, ciphers and protocols are used.
@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.@NotNull 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)
@NotNull B webSocketWithDefaultConfig()
WebSocket transport configuration
to the default
configuration.@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.@NotNull 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)