public class EmptyUniSubscription extends Object implements UniSubscription
UniSubscription ignoring all call to cancel().
This implementation should be accessed using the CANCELLED instance.| Modifier and Type | Field and Description |
|---|---|
static UniSubscription |
CANCELLED
The instance that can be shared.
|
| Modifier and Type | Method and Description |
|---|---|
void |
cancel()
Requests the
Uni to cancel and clean up resources. |
static <T> void |
propagateFailureEvent(UniSubscriber<T> subscriber,
Throwable failure) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitrequestpublic static final UniSubscription CANCELLED
cancel() is a no-op.public static <T> void propagateFailureEvent(UniSubscriber<T> subscriber, Throwable failure)
public 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.