Interface HybridSubscription
-
- All Superinterfaces:
Flow.Subscription,org.reactivestreams.Subscription
public interface HybridSubscription extends Flow.Subscription, org.reactivestreams.Subscription
Wrapper forReactive StreamsSubscriptionorHelidon reactive streamsFlow.Subscription, to be used interchangeably.
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description static HybridSubscriptionfrom(Flow.Subscription subscription)Create newHybridSubscriptionfromFlow.Processor.static HybridSubscriptionfrom(org.reactivestreams.Subscription subscription)Create newHybridSubscriptionfromFlow.Subscription.HybridSubscriptiononCancel(Runnable runnable)Runnable to be invoked after cancel is called.-
Methods inherited from interface java.util.concurrent.Flow.Subscription
cancel, request
-
-
-
-
Method Detail
-
from
static HybridSubscription from(Flow.Subscription subscription)
Create newHybridSubscriptionfromFlow.Processor.- Parameters:
subscription-Flow.Subscriptionto wrap- Returns:
HybridSubscriptioncompatible withReactive StreamsandHelidon reactive streams
-
from
static HybridSubscription from(org.reactivestreams.Subscription subscription)
Create newHybridSubscriptionfromFlow.Subscription.- Parameters:
subscription-Flow.Subscriptionto wrap- Returns:
HybridSubscriptioncompatible withReactive StreamsandHelidon reactive streams
-
onCancel
HybridSubscription onCancel(Runnable runnable)
Runnable to be invoked after cancel is called.- Parameters:
runnable- invoked after cancel is called- Returns:
- this
-
-