| Modifier and Type | Field and Description |
|---|---|
| pack-priv Subscription | actual
The current subscription which may null if no Subscriptions have been set. |
| pack-priv volatile boolean | |
| pack-priv final boolean | |
| pack-priv final AtomicLong | |
| pack-priv final AtomicLong | |
| pack-priv final AtomicReference | |
| pack-priv long | requested
The current outstanding request amount. |
| private static final long | |
| protected boolean |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | cancel()
Implements org. Publisher to stop sending data and clean up resources.
|
| pack-priv final void | |
| pack-priv final void | |
| public final boolean | Returns: true if the arbiter has been cancelledReturns true if the arbiter has been cancelled. |
| public final boolean | Returns: true if the arbiter runs in unbounded modeReturns true if the arbiter runs in unbounded mode. |
| public final void | |
| public final void | request(long
the strictly positive number of elements to requests to the upstream n)PublisherImplements org. Publisher until demand is signaled via this method.
|
| public final void | setSubscription(Subscription
the subscription to set, not null (verified) s)Atomically sets a new subscription. |
| actual | back to summary |
|---|---|
| pack-priv Subscription actual The current subscription which may null if no Subscriptions have been set. | |
| cancelled | back to summary |
|---|---|
| pack-priv volatile boolean cancelled | |
| cancelOnReplace | back to summary |
|---|---|
| pack-priv final boolean cancelOnReplace | |
| missedProduced | back to summary |
|---|---|
| pack-priv final AtomicLong missedProduced | |
| missedRequested | back to summary |
|---|---|
| pack-priv final AtomicLong missedRequested | |
| missedSubscription | back to summary |
|---|---|
| pack-priv final AtomicReference<Subscription> missedSubscription | |
| requested | back to summary |
|---|---|
| pack-priv long requested The current outstanding request amount. | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Hides java. | |
| unbounded | back to summary |
|---|---|
| protected boolean unbounded | |
| SubscriptionArbiter | back to summary |
|---|---|
| public SubscriptionArbiter(boolean cancelOnReplace) | |
| cancel | back to summary |
|---|---|
| public void cancel() Implements org. Doc from org. Request the Data may still be sent to meet previously signalled demand after calling cancel.
| |
| drain | back to summary |
|---|---|
| pack-priv final void drain() | |
| drainLoop | back to summary |
|---|---|
| pack-priv final void drainLoop() | |
| isCancelled | back to summary |
|---|---|
| public final boolean isCancelled() Returns true if the arbiter has been cancelled.
| |
| isUnbounded | back to summary |
|---|---|
| public final boolean isUnbounded() Returns true if the arbiter runs in unbounded mode.
| |
| produced | back to summary |
|---|---|
| public final void produced(long n) | |
| request | back to summary |
|---|---|
| public final void request(long n) Implements org. Doc from org. No events will be sent by a
It can be called however often and whenever needed—but if the outstanding cumulative demand ever becomes Long.MAX_VALUE or more,
it may be treated by the
Whatever has been requested can be sent by the
A | |
| setSubscription | back to summary |
|---|---|
| public final void setSubscription(Subscription s) Atomically sets a new subscription.
| |