| Modifier and Type | Field and Description |
|---|---|
| pack-priv final Subscriber | child
The child subscriber. |
| private static final long | |
| pack-priv final T | value
The value to be emitted.
|
| Access | Constructor and Description |
|---|---|
| public | SingleProducer(Subscriber<? super T>
the child subscriber, non-null child, T the value to be emitted, may be null value)Constructs the producer with the given target child and value to be emitted. |
| Modifier and Type | Method and Description |
|---|---|
| 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. |
| child | back to summary |
|---|---|
| pack-priv final Subscriber<? super T> child The child subscriber. | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Hides java. | |
| value | back to summary |
|---|---|
| pack-priv final T value Hides java. The value to be emitted. | |
| SingleProducer | back to summary |
|---|---|
| public SingleProducer(Subscriber<? super T> child, T value) Constructs the producer with the given target child and value to be emitted.
| |
| 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);
| |