The request amount only affects calls to Subscriber#onNext(Object); onError and onCompleted may appear without
requests.
However, backpressure is somewhat optional in RxJava 1.x and Subscribers may not
receive a Producer via their Subscriber#setProducer(Producer) method and will run
in unbounded mode. Depending on the chain of operators, this can lead to rx..
| 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 paceRequest a certain maximum number of items from this Producer. |
| request | back to summary |
|---|---|
| public void request(long n) 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);
| |