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)
Propagates a failure to the given downstream subscriber.
|
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)
CANCELLED subscription followed with the failure.T - the expected item typesubscriber - the subscriber, must not be nullfailure - the failure, must not be nullpublic 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.