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, wait
expectedFromUpstream, getCapacity, getError, getPending, limit
public final boolean set(org.reactivestreams.Subscription s)
s
- public void request(long n)
request
in interface org.reactivestreams.Subscription
public void cancel()
cancel
in interface org.reactivestreams.Subscription
public final boolean isCancelled()
isCancelled
in interface Trackable
public final boolean isStarted()
Trackable
public final boolean isTerminated()
Trackable
isTerminated
in interface Trackable
public final long requestedFromDownstream()
Trackable
Subscription
request needs.
This is the maximum in-flight data allowed to transit to this elements.requestedFromDownstream
in interface Trackable