Package io.smallrye.mutiny.subscription
Interface UniSubscription
-
- All Superinterfaces:
Cancellable
,org.reactivestreams.Subscription
- All Known Implementing Classes:
DefaultUniEmitter
,EmptyUniSubscription
,Subscriptions.EmptySubscription
,UniCallbackSubscriber
,UniOperatorProcessor
,UniSerializedSubscriber
public interface UniSubscription extends org.reactivestreams.Subscription, Cancellable
ASubscription
for theUni
type.The main different with the Reactive Streams Subscription is about the request protocol. Uni does not use request and triggers the computation at subscription time.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description void
cancel()
Requests theUni
to cancel and clean up resources.default void
request(long n)
-
-
-
Method Detail
-
cancel
void cancel()
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
-
request
default void request(long n)
- Specified by:
request
in interfaceorg.reactivestreams.Subscription
-
-