-
- All Superinterfaces:
Cancellable,java.util.concurrent.Flow.Subscription
- All Known Implementing Classes:
UniSerializedSubscriber
public interface UniSubscription extends java.util.concurrent.Flow.Subscription, Cancellable
AFlow.Subscriptionfor theUnitype.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 voidcancel()Requests theUnito cancel and clean up resources.default voidrequest(long n)
-
-
-
Method Detail
-
cancel
void cancel()
Requests 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 interfacejava.util.concurrent.Flow.Subscription
-
request
default void request(long n)
- Specified by:
requestin interfacejava.util.concurrent.Flow.Subscription
-
-