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 voidcancel()Requests theUnito cancel and clean up resources.voidrequest(long requests)
-
-
-
Method Detail
-
request
public void request(long requests)
- Specified by:
requestin interfaceorg.reactivestreams.Subscription- Specified by:
requestin interfaceUniSubscription
-
cancel
public void cancel()
Description copied from interface:UniSubscriptionRequests theUnito 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
cancellationevent upstream.- Specified by:
cancelin interfaceCancellable- Specified by:
cancelin interfaceorg.reactivestreams.Subscription- Specified by:
cancelin interfaceUniSubscription
-
-