Observer
onNext, onCompleted, and
onError.
When multiple threads are emitting and/or notifying they will be serialized by:
| Modifier and Type | Class and Description |
|---|---|
| pack-priv static class |
| Modifier and Type | Field and Description |
|---|---|
| private final Observer | |
| private boolean | |
| private SerializedObserver. | queue
If not null, it indicates more work. |
| private volatile boolean | terminated
Set to true if a terminal event was received. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| 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(T
the item emitted by the Observable t)Implements rx. |
| actual | back to summary |
|---|---|
| private final Observer<? super T> actual | |
| emitting | back to summary |
|---|---|
| private boolean emitting | |
| queue | back to summary |
|---|---|
| private SerializedObserver. If not null, it indicates more work. | |
| terminated | back to summary |
|---|---|
| private volatile boolean terminated Set to true if a terminal event was received. | |
| SerializedObserver | back to summary |
|---|---|
| public SerializedObserver(Observer<? super T> s) | |
| 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(T t) Implements rx. Doc from rx. Provides the Observer with a new item to observe.
The
The
| |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public void |
| FastList | back to summary |
|---|---|
| pack-priv FastList() | |
| add | back to summary |
|---|---|
| public void add(Object o) | |