Package io.smallrye.mutiny.helpers
Class Subscriptions.EmptySubscription
- java.lang.Object
-
- io.smallrye.mutiny.helpers.Subscriptions.EmptySubscription
-
- All Implemented Interfaces:
Cancellable
,UniSubscription
,org.reactivestreams.Subscription
- Enclosing class:
- Subscriptions
public static class Subscriptions.EmptySubscription extends java.lang.Object implements org.reactivestreams.Subscription, UniSubscription
-
-
Constructor Summary
Constructors Constructor Description EmptySubscription()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
cancel()
Requests theUni
to cancel and clean up resources.void
request(long requests)
-
-
-
Method Detail
-
request
public void request(long requests)
- Specified by:
request
in interfaceorg.reactivestreams.Subscription
- Specified by:
request
in interfaceUniSubscription
-
cancel
public void cancel()
Description copied from interface:UniSubscription
Requests theUni
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.- Specified by:
cancel
in interfaceCancellable
- Specified by:
cancel
in interfaceorg.reactivestreams.Subscription
- Specified by:
cancel
in interfaceUniSubscription
-
-