Scheduler asynchronously via an unbounded buffer.
| Modifier and Type | Class and Description |
|---|---|
| pack-priv static class |
| Modifier and Type | Field and Description |
|---|---|
| private final int | |
| private final boolean | |
| private final Scheduler |
| Access | Constructor and Description |
|---|---|
| public | OperatorObserveOn(Scheduler
the scheduler to use scheduler, boolean delay errors until all normal events are emitted in the other thread? delayError)
|
| public | OperatorObserveOn(Scheduler
the scheduler to use scheduler, boolean delay errors until all normal events are emitted in the other thread? delayError, int for the buffer feeding the Scheduler workers, defaults to bufferSize)RxRingBuffer.MAX if <= 0
|
| Modifier and Type | Method and Description |
|---|---|
| public Subscriber | |
| public static <T> Observable. |
| bufferSize | back to summary |
|---|---|
| private final int bufferSize | |
| delayError | back to summary |
|---|---|
| private final boolean delayError | |
| scheduler | back to summary |
|---|---|
| private final Scheduler scheduler | |
| OperatorObserveOn | back to summary |
|---|---|
public OperatorObserveOn(Scheduler scheduler, boolean delayError)
| |
| OperatorObserveOn | back to summary |
|---|---|
public OperatorObserveOn(Scheduler scheduler, boolean delayError, int bufferSize)
| |
| call | back to summary |
|---|---|
| public Subscriber Implements rx.
| |
| rebatch | back to summary |
|---|---|
| public static <T> Observable. | |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv final Subscriber | |
| pack-priv final AtomicLong | |
| pack-priv final boolean | |
| pack-priv long | emitted
Remembers how many elements have been emitted before the requests run out. |
| pack-priv Throwable | error
The single exception if not null, should be written before setting finished (release) and read after reading finished (acquire). |
| pack-priv volatile boolean | |
| pack-priv final int | limit
The emission threshold that should trigger a replenishing request. |
| pack-priv final Queue | |
| pack-priv final Scheduler. | |
| pack-priv final AtomicLong |
| Access | Constructor and Description |
|---|---|
| public | ObserveOnSubscriber(Scheduler scheduler, Subscriber<? super T> child, boolean delayError, int bufferSize)
|
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| pack-priv boolean | |
| pack-priv void | |
| public void | onCompleted()
Implements rx. Observable has finished sending push-based notifications.
|
| public void | onError(final Throwable
the exception encountered by the Observable e)Implements rx. Observable has experienced an error condition.
|
| public void | onNext(final T
the item emitted by the Observable t)Implements rx. |
| protected void |
| child | back to summary |
|---|---|
| pack-priv final Subscriber<? super T> child | |
| counter | back to summary |
|---|---|
| pack-priv final AtomicLong counter | |
| delayError | back to summary |
|---|---|
| pack-priv final boolean delayError | |
| emitted | back to summary |
|---|---|
| pack-priv long emitted Remembers how many elements have been emitted before the requests run out. | |
| error | back to summary |
|---|---|
| pack-priv Throwable error The single exception if not null, should be written before setting finished (release) and read after reading finished (acquire). | |
| finished | back to summary |
|---|---|
| pack-priv volatile boolean finished | |
| limit | back to summary |
|---|---|
| pack-priv final int limit The emission threshold that should trigger a replenishing request. | |
| queue | back to summary |
|---|---|
| pack-priv final Queue<Object> queue | |
| recursiveScheduler | back to summary |
|---|---|
| pack-priv final Scheduler. | |
| requested | back to summary |
|---|---|
| pack-priv final AtomicLong requested Hides rx. | |
| ObserveOnSubscriber | back to summary |
|---|---|
| public ObserveOnSubscriber(Scheduler scheduler, Subscriber<? super T> child, boolean delayError, int bufferSize) | |
| call | back to summary |
|---|---|
| public void call() Implements rx.
| |
| checkTerminated | back to summary |
|---|---|
| pack-priv boolean checkTerminated(boolean done, boolean isEmpty, Subscriber<? super T> a, Queue<Object> q) | |
| init | back to summary |
|---|---|
| pack-priv void init() | |
| 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(final Throwable e) Implements rx. Doc from rx. Notifies the Observer that the
If the | |
| onNext | back to summary |
|---|---|
| public void onNext(final T t) Implements rx. Doc from rx. Provides the Observer with a new item to observe.
The
The
| |
| schedule | back to summary |
|---|---|
| protected void schedule() | |