Package com.hivemq.client.mqtt
Interface MqttProxyConfig
Configuration for a proxy to use by
MQTT clients.- Since:
- 1.2
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe default proxy handshake timeout in milliseconds.static final intThe default HTTP proxy port.The default proxy host.static final @NotNull MqttProxyProtocolThe default proxy protocol.static final intThe default SOCKS proxy port. -
Method Summary
Modifier and TypeMethodDescriptionstatic @NotNull MqttProxyConfigBuilderbuilder()Creates a builder for a proxy configuration.extend()Creates a builder for extending this proxy configuration.int
-
Field Details
-
DEFAULT_PROXY_PROTOCOL
The default proxy protocol. -
DEFAULT_PROXY_HOST
The default proxy host.- See Also:
-
DEFAULT_SOCKS_PROXY_PORT
static final int DEFAULT_SOCKS_PROXY_PORTThe default SOCKS proxy port.- See Also:
-
DEFAULT_HTTP_PROXY_PORT
static final int DEFAULT_HTTP_PROXY_PORTThe default HTTP proxy port.- See Also:
-
DEFAULT_HANDSHAKE_TIMEOUT_MS
static final int DEFAULT_HANDSHAKE_TIMEOUT_MSThe default proxy handshake timeout in milliseconds.- See Also:
-
-
Method Details
-
builder
Creates a builder for a proxy configuration.- Returns:
- the created builder for a proxy configuration.
-
getProtocol
- Returns:
- the proxy protocol.
-
getAddress
- Returns:
- the proxy address to connect to.
-
getUsername
- Returns:
- the optional proxy username.
-
getPassword
- Returns:
- the optional proxy password.
-
getHandshakeTimeoutMs
int getHandshakeTimeoutMs()- Returns:
- the proxy handshake timeout in milliseconds.
-
extend
Creates a builder for extending this proxy configuration.- Returns:
- the created builder.
-