| Modifier and Type | Class and Description |
|---|---|
| pack-priv static class |
| Modifier and Type | Field and Description |
|---|---|
| private final int | |
| private final int |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void |
| endIndex | back to summary |
|---|---|
| private final int endIndex | |
| startIndex | back to summary |
|---|---|
| private final int startIndex | |
| OnSubscribeRange | back to summary |
|---|---|
| public OnSubscribeRange(int start, int end) | |
| call | back to summary |
|---|---|
| public void call(final Subscriber<? super Integer> childSubscriber) Implements rx.
| |
| Modifier and Type | Field and Description |
|---|---|
| private final Subscriber | |
| private long | |
| private final int | |
| private static final long |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv void | |
| public void | request(long
the maximum number of items you want this Producer to produce, or requestedAmount)Long.MAX_VALUE if you
want the Producer to produce items at its own paceImplements rx. |
| pack-priv void | slowPath(long requestedAmount)
Emits as many values as requested or remaining from the range, whichever is smaller. |
| childSubscriber | back to summary |
|---|---|
| private final Subscriber<? super Integer> childSubscriber | |
| currentIndex | back to summary |
|---|---|
| private long currentIndex | |
| endOfRange | back to summary |
|---|---|
| private final int endOfRange | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Hides java. | |
| RangeProducer | back to summary |
|---|---|
| pack-priv RangeProducer(Subscriber<? super Integer> childSubscriber, int startIndex, int endIndex) | |
| fastPath | back to summary |
|---|---|
| pack-priv void fastPath() Emits all remaining values without decrementing the requested amount. | |
| request | back to summary |
|---|---|
| public void request(long requestedAmount) 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);
| |
| slowPath | back to summary |
|---|---|
| pack-priv void slowPath(long requestedAmount) Emits as many values as requested or remaining from the range, whichever is smaller. | |