Package com.hivemq.client.mqtt
Interface MqttClientTransportConfig
Configuration for a transport to use by
MQTT clients.- Since:
- 1.1
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe default timeout between sending the Connect and receiving the ConnAck message in milliseconds.static final intThe default timeout for connecting the socket to the server in milliseconds. -
Method Summary
-
Field Details
-
DEFAULT_SOCKET_CONNECT_TIMEOUT_MS
static final int DEFAULT_SOCKET_CONNECT_TIMEOUT_MSThe default timeout for connecting the socket to the server in milliseconds.- Since:
- 1.2
- See Also:
-
DEFAULT_MQTT_CONNECT_TIMEOUT_MS
static final int DEFAULT_MQTT_CONNECT_TIMEOUT_MSThe default timeout between sending the Connect and receiving the ConnAck message in milliseconds.- Since:
- 1.2
- See Also:
-
-
Method Details
-
builder
Creates a builder for a transport configuration.- Returns:
- the created builder for a transport configuration.
-
getServerAddress
- Returns:
- the server address to connect to.
-
getLocalAddress
- Returns:
- the optional local bind address.
- Since:
- 1.2
-
getSslConfig
- Returns:
- the optional secure transport configuration.
-
getWebSocketConfig
- Returns:
- the optional WebSocket transport configuration.
-
getProxyConfig
- Returns:
- the optional proxy configuration.
- Since:
- 1.2
-
getSocketConnectTimeoutMs
int getSocketConnectTimeoutMs()- Returns:
- the timeout for connecting the socket to the server in milliseconds.
- Since:
- 1.2
-
getMqttConnectTimeoutMs
int getMqttConnectTimeoutMs()- Returns:
- the timeout between sending the Connect and receiving the ConnAck message in milliseconds.
- Since:
- 1.2
-
extend
Creates a builder for extending this transport configuration.- Returns:
- the created builder.
-