| Modifier and Type | Field and Description |
|---|---|
| pack-priv final Runnable | |
| pack-priv final AtomicBoolean | |
| pack-priv final Demand | |
| pack-priv final Consumer | |
| pack-priv final SequentialScheduler |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | cancel()
Implements java. Causes the Subscriber to (eventually) stop receiving messages. |
| public void | request(long n)
Implements java. Adds the given number |
| public String | |
| public boolean | |
| public long |
| cancelAction | back to summary |
|---|---|
| pack-priv final Runnable cancelAction | |
| cancelled | back to summary |
|---|---|
| pack-priv final AtomicBoolean cancelled | |
| demand | back to summary |
|---|---|
| pack-priv final Demand demand | |
| onError | back to summary |
|---|---|
| pack-priv final Consumer<Throwable> onError | |
| scheduler | back to summary |
|---|---|
| pack-priv final SequentialScheduler scheduler | |
| SubscriptionBase | back to summary |
|---|---|
| public SubscriptionBase(SequentialScheduler scheduler, Runnable cancelAction) | |
| SubscriptionBase | back to summary |
|---|---|
| public SubscriptionBase(SequentialScheduler scheduler, Runnable cancelAction, Consumer<Throwable> onError) | |
| cancel | back to summary |
|---|---|
| public void cancel() Implements java. Doc from java. Causes the Subscriber to (eventually) stop receiving
messages. Implementation is best-effort -- additional
messages may be received after invoking this method.
A cancelled subscription need not ever receive an
| |
| request | back to summary |
|---|---|
| public void request(long n) Implements java. Doc from java. Adds the given number
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non-
| |
| tryDecrement | back to summary |
|---|---|
| public boolean tryDecrement() Returns true if the window was reduced by 1. In that case items must be supplied to subscribers and the scheduler run externally. If the window could not be reduced by 1, then false is returned and the scheduler will run later when the window is updated. | |
| window | back to summary |
|---|---|
| public long window() | |