Package com.hivemq.client.mqtt
Interface MqttProxyConfigBuilderBase<B extends MqttProxyConfigBuilderBase<B>>
- Type Parameters:
B- the type of the builder.
- All Known Subinterfaces:
MqttProxyConfigBuilder,MqttProxyConfigBuilder.Nested<P>
@DoNotImplement
public interface MqttProxyConfigBuilderBase<B extends MqttProxyConfigBuilderBase<B>>
Builder base for a
MqttProxyConfig.- Since:
- 1.2
-
Method Summary
Modifier and TypeMethodDescriptionaddress(@NotNull InetSocketAddress address) Sets theproxy addressto connect to.handshakeTimeout(long timeout, @NotNull TimeUnit timeUnit) Sets theproxy handshake timeout.Sets the proxy host to connect to.host(@NotNull InetAddress host) Sets the proxy host to connect to.Sets theproxy password.port(int port) Sets the proxy port to connect to.protocol(@NotNull MqttProxyProtocol protocol) Sets theproxy protocol.Sets theproxy username.
-
Method Details
-
protocol
Sets theproxy protocol.- Parameters:
protocol- the proxy protocol.- Returns:
- the builder.
-
address
Sets theproxy addressto connect to.- Parameters:
address- the proxy address.- Returns:
- the builder.
-
host
Sets the proxy host to connect to.- Parameters:
host- the proxy host.- Returns:
- the builder.
-
host
Sets the proxy host to connect to.- Parameters:
host- the proxy host.- Returns:
- the builder.
-
port
Sets the proxy port to connect to.- Parameters:
port- the proxy port.- Returns:
- the builder.
-
username
Sets theproxy username.- Parameters:
username- the proxy username.- Returns:
- the builder.
-
password
Sets theproxy password.- Parameters:
password- the proxy username.- Returns:
- the builder.
-
handshakeTimeout
Sets theproxy handshake timeout.The timeout in milliseconds must be in the range: [0,
Integer.MAX_VALUE].- Parameters:
timeout- the proxy handshake timeout or0to disable the timeout.timeUnit- the time unit of the given timeout (this timeout only supports millisecond precision).- Returns:
- the builder.
-