| Modifier and Type | Field and Description |
|---|---|
| pack-priv static final long | COMPLETE_MASK
Masks out the 2^63 bit indicating a completed state. |
| protected final Subscriber | downstream
The downstream consumer. |
| protected long | produced
Number of values emitted so far. |
| pack-priv static final long | REQUEST_MASK
Masks out the lower 63 bit holding the current request amount. |
| private static final long | |
| protected Subscription | upstream
The upstream subscription. |
| protected R | value
The last value stored in case there is no request for it.
|
| 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.
|
| protected final void | complete(R
the value to emit n)Signals the given value and an onComplete if the downstream is ready to receive the final value. |
| protected void | |
| public void | onSubscribe(Subscription
the s)Subscription that allows requesting data via Subscription#request(long)Implements org. Publisher#subscribe(Subscriber).
|
| 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.
|
| COMPLETE_MASK | back to summary |
|---|---|
| pack-priv static final long COMPLETE_MASK Masks out the 2^63 bit indicating a completed state. | |
| downstream | back to summary |
|---|---|
| protected final Subscriber<? super R> downstream The downstream consumer. | |
| produced | back to summary |
|---|---|
| protected long produced Number of values emitted so far. | |
| REQUEST_MASK | back to summary |
|---|---|
| pack-priv static final long REQUEST_MASK Masks out the lower 63 bit holding the current request amount. | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Hides java. | |
| upstream | back to summary |
|---|---|
| protected Subscription upstream The upstream subscription. | |
| value | back to summary |
|---|---|
| protected R value Hides java. The last value stored in case there is no request for it. | |
| SinglePostCompleteSubscriber | back to summary |
|---|---|
| public SinglePostCompleteSubscriber(Subscriber<? super R> downstream) | |
| 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.
| |
| complete | back to summary |
|---|---|
| protected final void complete(R n) Signals the given value and an onComplete if the downstream is ready to receive the final value.
| |
| onDrop | back to summary |
|---|---|
| protected void onDrop(R n) Called in case of multiple calls to complete.
| |
| onSubscribe | back to summary |
|---|---|
| public void onSubscribe(Subscription s) Implements org. Doc from org. Invoked after calling
No data will start flowing until
It is the responsibility of this
The
| |
| 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 | |