Package com.hivemq.client.mqtt
Interface MqttClient
- All Known Subinterfaces:
Mqtt3AsyncClient,Mqtt3BlockingClient,Mqtt3Client,Mqtt3RxClient,Mqtt5AsyncClient,Mqtt5BlockingClient,Mqtt5Client,Mqtt5RxClient
Common interface for MQTT clients.
- Since:
- 1.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionThe default server host.static final intThe default server port.static final intThe default server port when using SSL/TLS.static final intThe default server port when using WebSocket.static final intThe default server port when using SSL/TLS and WebSocket. -
Method Summary
Modifier and TypeMethodDescriptionstatic @NotNull MqttClientBuilderbuilder()Creates a builder for an MQTT client.default @NotNull MqttClientStategetState()
-
Field Details
-
DEFAULT_SERVER_HOST
The default server host.- See Also:
-
DEFAULT_SERVER_PORT
static final int DEFAULT_SERVER_PORTThe default server port.- See Also:
-
DEFAULT_SERVER_PORT_SSL
static final int DEFAULT_SERVER_PORT_SSLThe default server port when using SSL/TLS.- See Also:
-
DEFAULT_SERVER_PORT_WEBSOCKET
static final int DEFAULT_SERVER_PORT_WEBSOCKETThe default server port when using WebSocket.- See Also:
-
DEFAULT_SERVER_PORT_WEBSOCKET_SSL
static final int DEFAULT_SERVER_PORT_WEBSOCKET_SSLThe default server port when using SSL/TLS and WebSocket.- See Also:
-
-
Method Details
-
builder
Creates a builder for an MQTT client.- Returns:
- the created builder for an MQTT client.
-
getConfig
- Returns:
- the configuration of this client.
-
getState
- Returns:
- the state of this client.
- Since:
- 1.1
-