The implementation shortcuts on error and overwrites producers that got delayed, similar to ProducerArbiter.
| Modifier and Type | Field and Description |
|---|---|
| pack-priv final Subscriber | |
| pack-priv Producer | |
| pack-priv boolean | |
| pack-priv volatile boolean | |
| pack-priv Producer | |
| pack-priv long | |
| pack-priv Object | |
| pack-priv static final Producer | |
| pack-priv List | |
| pack-priv long |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv void | |
| public void | onCompleted()
Implements rx. Observable has finished sending push-based notifications.
|
| public void | onError(Throwable
the exception encountered by the Observable e)Implements rx. Observable has experienced an error condition.
|
| public void | onNext(T
the item emitted by the Observable t)Implements rx. |
| 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 | |
| currentProducer | back to summary |
|---|---|
| pack-priv Producer currentProducer | |
| emitting | back to summary |
|---|---|
| pack-priv boolean emitting | |
| hasError | back to summary |
|---|---|
| pack-priv volatile boolean hasError | |
| missedProducer | back to summary |
|---|---|
| pack-priv Producer missedProducer | |
| missedRequested | back to summary |
|---|---|
| pack-priv long missedRequested | |
| missedTerminal | back to summary |
|---|---|
| pack-priv Object missedTerminal | |
| NULL_PRODUCER | back to summary |
|---|---|
| pack-priv static final Producer NULL_PRODUCER | |
| queue | back to summary |
|---|---|
| pack-priv List<T> queue | |
| requested | back to summary |
|---|---|
| pack-priv long requested | |
| ProducerObserverArbiter | back to summary |
|---|---|
| public ProducerObserverArbiter(Subscriber<? super T> child) | |
| emitLoop | back to summary |
|---|---|
| pack-priv void emitLoop() | |
| onCompleted | back to summary |
|---|---|
| public void onCompleted() Implements rx. Doc from rx. Notifies the Observer that the
The
| |
| onError | back to summary |
|---|---|
| public void onError(Throwable e) Implements rx. Doc from rx. Notifies the Observer that the
If the | |
| onNext | back to summary |
|---|---|
| public void onNext(T t) Implements rx. Doc from rx. Provides the Observer with a new item to observe.
The
The
| |
| 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);
| |
| setProducer | back to summary |
|---|---|
| public void setProducer(Producer p) | |