| Modifier and Type | Field and Description |
|---|---|
| pack-priv final Subscriber | child
The child to emit the value and completion once possible. |
| pack-priv static final int | |
| pack-priv static final int | |
| pack-priv static final int | |
| pack-priv static final int | |
| private static final long | |
| pack-priv T | value
The value to emit.
|
| Access | Constructor and Description |
|---|---|
| public | SingleDelayedProducer(Subscriber<? super T>
the child subscriber, not null child)Constructor, wraps the target child subscriber. |
| Modifier and Type | Method and Description |
|---|---|
| private static <T> void | emit(Subscriber<? super T>
the target Subscriber to emit to c, T the value to emit v)Emits the given value to the child subscriber and completes it and checks for unsubscriptions eagerly. |
| public void | request(long
the maximum number of items you want this Producer to produce, or n)Long.MAX_VALUE if you
want the Producer to produce items at its own paceImplements rx. |
| public void |
| child | back to summary |
|---|---|
| pack-priv final Subscriber<? super T> child The child to emit the value and completion once possible. | |
| HAS_REQUEST_HAS_VALUE | back to summary |
|---|---|
| pack-priv static final int HAS_REQUEST_HAS_VALUE | |
| HAS_REQUEST_NO_VALUE | back to summary |
|---|---|
| pack-priv static final int HAS_REQUEST_NO_VALUE | |
| NO_REQUEST_HAS_VALUE | back to summary |
|---|---|
| pack-priv static final int NO_REQUEST_HAS_VALUE | |
| NO_REQUEST_NO_VALUE | back to summary |
|---|---|
| pack-priv static final int NO_REQUEST_NO_VALUE | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Hides java. | |
| value | back to summary |
|---|---|
| pack-priv T value Hides java. The value to emit. | |
| SingleDelayedProducer | back to summary |
|---|---|
| public SingleDelayedProducer(Subscriber<? super T> child) Constructor, wraps the target child subscriber.
| |
| emit | back to summary |
|---|---|
| private static <T> void emit(Subscriber<? super T> c, T v) Emits the given value to the child subscriber and completes it and checks for unsubscriptions eagerly.
| |
| request | back to summary |
|---|---|
| public void request(long n) Implements rx. Doc from rx. Request a certain maximum number of items from this Producer. This is a way of requesting backpressure.
To disable backpressure, pass
Requests are additive but if a sequence of requests totals more than request(100); request(Long.MAX_VALUE-1);
| |
| setValue | back to summary |
|---|---|
| public void setValue(T value) | |