public class Mqtt3BlockingClientView extends java.lang.Object implements Mqtt3BlockingClient
Mqtt3BlockingClient.Mqtt3Publishes
DEFAULT_SERVER_HOST, DEFAULT_SERVER_PORT, DEFAULT_SERVER_PORT_SSL, DEFAULT_SERVER_PORT_WEBSOCKET, DEFAULT_SERVER_PORT_WEBSOCKET_SSL
Modifier and Type | Method and Description |
---|---|
@NotNull Mqtt3ConnAck |
connect(@Nullable Mqtt3Connect connect)
Connects this client with the given Connect message.
|
void |
disconnect()
Disconnects this client with the given Disconnect message.
|
@NotNull Mqtt3ClientConfig |
getConfig() |
void |
publish(@Nullable Mqtt3Publish publish)
Publishes the given Publish message.
|
@NotNull Mqtt3BlockingClient.Mqtt3Publishes |
publishes(@Nullable MqttGlobalPublishFilter filter)
Globally consumes all incoming Publish messages matching the given filter.
|
@NotNull Mqtt3SubAck |
subscribe(@Nullable Mqtt3Subscribe subscribe)
Subscribes this client with the given Subscribe message.
|
@NotNull Mqtt3AsyncClient |
toAsync()
Turns the API of this client into a asynchronous API based on futures and callbacks.
|
@NotNull Mqtt3RxClient |
toRx()
Turns the API of this client into a reactive API.
|
void |
unsubscribe(@Nullable Mqtt3Unsubscribe unsubscribe)
Unsubscribes this client with the given Unsubscribe message.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
connect, connectWith, publishWith, subscribeWith, toBlocking, unsubscribeWith
builder
@NotNull public @NotNull Mqtt3ConnAck connect(@Nullable @Nullable Mqtt3Connect connect)
Mqtt3BlockingClient
connect
in interface Mqtt3BlockingClient
connect
- the Connect message sent to the broker.@NotNull public @NotNull Mqtt3SubAck subscribe(@Nullable @Nullable Mqtt3Subscribe subscribe)
Mqtt3BlockingClient
See Mqtt3BlockingClient.publishes(MqttGlobalPublishFilter)
to consume the incoming Publish messages.
subscribe
in interface Mqtt3BlockingClient
subscribe
- the Subscribe messages sent to the broker.@NotNull public @NotNull Mqtt3BlockingClient.Mqtt3Publishes publishes(@Nullable @Nullable MqttGlobalPublishFilter filter)
Mqtt3BlockingClient
publishes
in interface Mqtt3BlockingClient
filter
- the filter with which all incoming Publish messages are filtered.Mqtt3BlockingClient.Mqtt3Publishes
instance that can be used to receive the Publish messages on the calling
thread.public void unsubscribe(@Nullable @Nullable Mqtt3Unsubscribe unsubscribe)
Mqtt3BlockingClient
unsubscribe
in interface Mqtt3BlockingClient
unsubscribe
- the Unsubscribe message sent to the broker.public void publish(@Nullable @Nullable Mqtt3Publish publish)
Mqtt3BlockingClient
publish
in interface Mqtt3BlockingClient
publish
- the Publish message sent to the broker.public void disconnect()
Mqtt3BlockingClient
disconnect
in interface Mqtt3BlockingClient
@NotNull public @NotNull Mqtt3ClientConfig getConfig()
getConfig
in interface Mqtt3Client
getConfig
in interface MqttClient
@NotNull public @NotNull Mqtt3RxClient toRx()
Mqtt3Client
The reactive API can be used simultaneously with the other APIs.
toRx
in interface Mqtt3Client
@NotNull public @NotNull Mqtt3AsyncClient toAsync()
Mqtt3Client
The asynchronous API can be used simultaneously with the other APIs.
toAsync
in interface Mqtt3Client