public interface UniSubscription extends org.reactivestreams.Subscription, Cancellable
Subscription for the Uni type.
The main different with the Reactive Streams Subscription is about the request protocol. Uni does not use request and triggers the computation at subscription time.
| Modifier and Type | Method and Description |
|---|---|
void |
cancel()
Requests the
Uni to cancel and clean up resources. |
default void |
request(long n) |
void cancel()
Uni to cancel and clean up resources.
If the item is retrieved after cancellation, it is not forwarded to the subscriber.
If the cancellation happens after the delivery of the item, this call is ignored.
Calling this method, emits the cancellation event upstream.
cancel in interface Cancellablecancel in interface org.reactivestreams.Subscriptiondefault void request(long n)
request in interface org.reactivestreams.SubscriptionCopyright © 2019–2020 SmallRye. All rights reserved.