B - the type of the builder.@DoNotImplement public interface MqttProxyConfigBuilderBase<B extends MqttProxyConfigBuilderBase<B>>
MqttProxyConfig.| Modifier and Type | Method and Description |
|---|---|
B |
address(@NotNull InetSocketAddress address)
Sets the
proxy address to connect to. |
B |
handshakeTimeout(long timeout,
@NotNull TimeUnit timeUnit)
Sets the
proxy handshake timeout. |
B |
host(@NotNull InetAddress host)
Sets the proxy host to connect to.
|
B |
host(@NotNull String host)
Sets the proxy host to connect to.
|
B |
password(@Nullable String password)
Sets the
proxy password. |
B |
port(int port)
Sets the proxy port to connect to.
|
B |
protocol(@NotNull MqttProxyProtocol protocol)
Sets the
proxy protocol. |
B |
username(@Nullable String username)
Sets the
proxy username. |
@CheckReturnValue @NotNull B protocol(@NotNull @NotNull MqttProxyProtocol protocol)
proxy protocol.protocol - the proxy protocol.@CheckReturnValue @NotNull B address(@NotNull @NotNull InetSocketAddress address)
proxy address to connect to.address - the proxy address.@CheckReturnValue @NotNull B host(@NotNull @NotNull String host)
host - the proxy host.@CheckReturnValue @NotNull B host(@NotNull @NotNull InetAddress host)
host - the proxy host.@CheckReturnValue @NotNull B port(int port)
port - the proxy port.@CheckReturnValue @NotNull B username(@Nullable @Nullable String username)
proxy username.username - the proxy username.@CheckReturnValue @NotNull B password(@Nullable @Nullable String password)
proxy password.password - the proxy username.@CheckReturnValue @NotNull B handshakeTimeout(long timeout, @NotNull @NotNull TimeUnit timeUnit)
proxy handshake timeout.
The timeout in milliseconds must be in the range: [0, Integer.MAX_VALUE].
timeout - the proxy handshake timeout or 0 to disable the timeout.timeUnit - the time unit of the given timeout (this timeout only supports millisecond precision).