public static class Subscriptions.EmptySubscription extends Object implements org.reactivestreams.Subscription, UniSubscription
| Constructor and Description |
|---|
EmptySubscription() |
| Modifier and Type | Method and Description |
|---|---|
void |
cancel()
Requests the
Uni to cancel and clean up resources. |
void |
request(long requests) |
public void request(long requests)
request in interface UniSubscriptionrequest in interface org.reactivestreams.Subscriptionpublic void cancel()
UniSubscriptionUni 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 UniSubscriptioncancel in interface org.reactivestreams.SubscriptionCopyright © 2019–2020 SmallRye. All rights reserved.