@DoNotImplement public static interface Mqtt3BlockingClient.Mqtt3Publishes extends AutoCloseable
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
@NotNull Mqtt3Publish |
receive()
Receives the next incoming Publish message.
|
@NotNull Optional<Mqtt3Publish> |
receive(long timeout,
@NotNull TimeUnit timeUnit)
Receives the next incoming Publish message.
|
@NotNull Optional<Mqtt3Publish> |
receiveNow()
Receives the next incoming Publish message if it is already queued in this
Mqtt3BlockingClient.Mqtt3Publishes instance. |
@NotNull @NotNull Mqtt3Publish receive() throws InterruptedException
Mqtt3BlockingClient.Mqtt3Publishes
instance.
InterruptedException - if the calling thread is interrupted while waiting for a Publish message to be
received.@NotNull @NotNull Optional<Mqtt3Publish> receive(long timeout, @NotNull @NotNull TimeUnit timeUnit) throws InterruptedException
Mqtt3BlockingClient.Mqtt3Publishes
instance.
timeout - the time to wait for a Publish messages to be received.timeUnit - the time unit of the timeout parameter.Optional containing the received Publish message, or empty if no Publish message was
received in the given timeout period.InterruptedException - if the calling thread is interrupted while waiting for a Publish message to be
received.@NotNull @NotNull Optional<Mqtt3Publish> receiveNow()
Mqtt3BlockingClient.Mqtt3Publishes instance.Optional containing the already queued Publish message, or empty if no Publish message was
already queued.void close()
close in interface AutoCloseable