public static class Operators.DeferredSubscription extends java.lang.Object implements org.reactivestreams.Subscription, Receiver, Trackable
UNSPECIFIED| Constructor and Description |
|---|
DeferredSubscription() |
| Modifier and Type | Method and Description |
|---|---|
void |
cancel() |
boolean |
isCancelled()
Returns true if this arbiter has been cancelled.
|
boolean |
isStarted()
Has this upstream started or "onSubscribed" ?
|
boolean |
isTerminated()
Has this upstream finished or "completed" / "failed" ?
|
void |
request(long n) |
long |
requestedFromDownstream()
Return defined element capacity, used to drive new
Subscription request needs. |
boolean |
set(org.reactivestreams.Subscription s)
Atomically sets the single subscription and requests the missed amount from it.
|
org.reactivestreams.Subscription |
upstream()
Return the direct source of data, Supports reference.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitexpectedFromUpstream, getCapacity, getError, getPending, limitpublic final boolean set(org.reactivestreams.Subscription s)
s - the subscription to setpublic void request(long n)
request in interface org.reactivestreams.Subscriptionpublic void cancel()
cancel in interface org.reactivestreams.Subscriptionpublic final boolean isCancelled()
isCancelled in interface Trackablepublic final boolean isStarted()
Trackablepublic final boolean isTerminated()
TrackableisTerminated in interface Trackablepublic final long requestedFromDownstream()
TrackableSubscription request needs.
This is the maximum in-flight data allowed to transit to this elements.requestedFromDownstream in interface Trackable