Subscriber
onNext, onCompleted, and
onError.
When multiple threads are emitting and/or notifying they will be serialized by:
| Access | Constructor and Description |
|---|---|
| public | |
| public | SerializedSubscriber(Subscriber<? super T>
the subscriber to wrap and serialize s, boolean if shareSubscriptions)true, the same subscription list is shared between this subscriber and s.Constructor for wrapping and serializing a subscriber optionally sharing the same underlying subscription list. |
| Modifier and Type | Method and Description |
|---|---|
| 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. |
| s | back to summary |
|---|---|
| private final Observer<T> s | |
| SerializedSubscriber | back to summary |
|---|---|
| public SerializedSubscriber(Subscriber<? super T> s) | |
| SerializedSubscriber | back to summary |
|---|---|
| public SerializedSubscriber(Subscriber<? super T> s, boolean shareSubscriptions) Constructor for wrapping and serializing a subscriber optionally sharing the same underlying subscription list.
| |
| onCompleted | back to summary |
|---|---|
| public void onCompleted() Implements rx. Notifies the Subscriber that the
The
| |
| onError | back to summary |
|---|---|
| public void onError(Throwable e) Implements rx. Notifies the Subscriber that the
If the | |
| onNext | back to summary |
|---|---|
| public void onNext(T t) Implements rx. Provides the Subscriber with a new item to observe.
The
The
| |