SingleSubscriber that gets either an onSuccess or onError
signal and allows registering an cancellation/unsubscription callback.
All methods are thread-safe; calling onSuccess or onError twice or one after the other has no effect.
History: 1.2.3 - experimental
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public void | |
| public void | setCancellation(Cancellable
the cancellable resource, null is allowed c)Sets a Cancellable on this emitter; any previous Subscription or Cancellation will be unsubscribed/cancelled. |
| public void | setSubscription(Subscription
the subscription, null is allowed s)Sets a Subscription on this emitter; any previous Subscription or Cancellation will be unsubscribed/cancelled. |
| onError | back to summary |
|---|---|
| public void onError(Throwable t) Notifies the SingleSubscriber that the
If the
| |
| onSuccess | back to summary |
|---|---|
| public void onSuccess(T t) Notifies the SingleSubscriber that the
If the
| |
| setCancellation | back to summary |
|---|---|
| public void setCancellation(Cancellable c) Sets a Cancellable on this emitter; any previous Subscription or Cancellation will be unsubscribed/cancelled.
| |
| setSubscription | back to summary |
|---|---|
| public void setSubscription(Subscription s) Sets a Subscription on this emitter; any previous Subscription or Cancellation will be unsubscribed/cancelled.
| |