Package org.apache.pekko.stream
Interface SubscriptionWithCancelException
- All Superinterfaces:
org.reactivestreams.Subscription
- All Known Implementing Classes:
StreamTestKit.PublisherProbeSubscription
public interface SubscriptionWithCancelException
extends org.reactivestreams.Subscription
Extension of Subscription that allows to pass a cause when a subscription is cancelled.
Subscribers can check for this trait and use its cancel(cause) method instead of the regular
cancel method to pass a cancellation cause.
Not for user extension.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classstatic classNot for user extensionstatic class -
Method Summary
Methods inherited from interface org.reactivestreams.Subscription
request
-
Method Details
-
cancel
void cancel()- Specified by:
cancelin interfaceorg.reactivestreams.Subscription
-
cancel
-