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