@DoNotImplement public static interface Mqtt5AsyncClient.Mqtt5SubscribeAndCallbackBuilder.Call
Mqtt5Subscribe that are applied to a Mqtt5AsyncClient.subscribe(Mqtt5Subscribe, Consumer, boolean) or Mqtt5AsyncClient.subscribe(Mqtt5Subscribe, Consumer, Executor,
boolean) call.| Modifier and Type | Interface and Description |
|---|---|
static interface |
Mqtt5AsyncClient.Mqtt5SubscribeAndCallbackBuilder.Call.Ex
Builder for additional arguments alongside the
Mqtt5Subscribe that are applied to a Mqtt5AsyncClient.subscribe(Mqtt5Subscribe, Consumer, Executor, boolean) call. |
| Modifier and Type | Method and Description |
|---|---|
@NotNull Mqtt5AsyncClient.Mqtt5SubscribeAndCallbackBuilder.Call.Ex |
callback(@NotNull Consumer<Mqtt5Publish> callback)
Sets a callback for the matching Publish messages consumed via the subscriptions.
|
@NotNull CompletableFuture<Mqtt5SubAck> |
send()
Builds the
Mqtt5Subscribe and applies it and additional arguments to a Mqtt5AsyncClient.subscribe(Mqtt5Subscribe), Mqtt5AsyncClient.subscribe(Mqtt5Subscribe, Consumer, boolean) or Mqtt5AsyncClient.subscribe(Mqtt5Subscribe, Consumer, Executor, boolean) call which then sends the Subscribe message. |
@CheckReturnValue @NotNull @NotNull Mqtt5AsyncClient.Mqtt5SubscribeAndCallbackBuilder.Call.Ex callback(@NotNull @NotNull Consumer<Mqtt5Publish> callback)
callback - the callback for the matching Publish messages.@NotNull @NotNull CompletableFuture<Mqtt5SubAck> send()
Mqtt5Subscribe and applies it and additional arguments to a Mqtt5AsyncClient.subscribe(Mqtt5Subscribe), Mqtt5AsyncClient.subscribe(Mqtt5Subscribe, Consumer, boolean) or Mqtt5AsyncClient.subscribe(Mqtt5Subscribe, Consumer, Executor, boolean) call which then sends the Subscribe message.