Package io.smallrye.mutiny.helpers
Class Subscriptions.DeferredSubscription
- java.lang.Object
-
- io.smallrye.mutiny.helpers.Subscriptions.DeferredSubscription
-
- All Implemented Interfaces:
org.reactivestreams.Subscription
- Enclosing class:
- Subscriptions
public static class Subscriptions.DeferredSubscription extends java.lang.Object implements org.reactivestreams.Subscription
-
-
Constructor Summary
Constructors Constructor Description DeferredSubscription()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
cancel()
protected boolean
isCancelled()
void
request(long n)
boolean
set(org.reactivestreams.Subscription newSubscription)
Atomically sets the single subscription and requests the missed amount from it.
-
-
-
Method Detail
-
isCancelled
protected boolean isCancelled()
-
cancel
public void cancel()
- Specified by:
cancel
in interfaceorg.reactivestreams.Subscription
-
request
public void request(long n)
- Specified by:
request
in interfaceorg.reactivestreams.Subscription
-
set
public boolean set(org.reactivestreams.Subscription newSubscription)
Atomically sets the single subscription and requests the missed amount from it.- Parameters:
newSubscription
- the subscription to set- Returns:
- false if this arbiter is cancelled or there was a subscription already set
-
-