| Modifier and Type | Field and Description |
|---|---|
| pack-priv final Action | |
| pack-priv final Consumer | |
| pack-priv final Consumer | |
| private static final long |
| Access | Constructor and Description |
|---|---|
| public | MaybeCallbackObserver(Consumer<? super T> onSuccess, Consumer<? super Throwable> onError, Action onComplete)
|
| Modifier and Type | Method and Description |
|---|---|
| public void | dispose()
Implements io. |
| public boolean | hasCustomOnError()
Implements io. |
| public boolean | isDisposed()
Implements io. |
| public void | onComplete()
Implements io. |
| public void | onError(Throwable
the exception encountered by the Maybe e)Implements io. Maybe has experienced an error condition.
|
| public void | onSubscribe(Disposable
the Disposable instance whose d)Disposable#dispose() can
be called anytime to cancel the connectionImplements io. onSubscribe(Disposable) itself) and asynchronous manner.
|
| public void | onSuccess(T
the item emitted by the Maybe value)Implements io. Maybe has finished sending
push-based notifications.
|
| onComplete | back to summary |
|---|---|
| pack-priv final Action onComplete | |
| onError | back to summary |
|---|---|
| pack-priv final Consumer<? super Throwable> onError | |
| onSuccess | back to summary |
|---|---|
| pack-priv final Consumer<? super T> onSuccess | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Hides java. | |
| MaybeCallbackObserver | back to summary |
|---|---|
| public MaybeCallbackObserver(Consumer<? super T> onSuccess, Consumer<? super Throwable> onError, Action onComplete) | |
| dispose | back to summary |
|---|---|
| public void dispose() Implements io. Doc from io. Dispose the resource, the operation should be idempotent.
| |
| hasCustomOnError | back to summary |
|---|---|
| public boolean hasCustomOnError() Implements io. Doc from io. Returns true or false if a custom onError consumer has been provided.
| |
| isDisposed | back to summary |
|---|---|
| public boolean isDisposed() Implements io. Doc from io. Returns true if this resource has been disposed.
| |
| onComplete | back to summary |
|---|---|
| public void onComplete() Implements io. Doc from io. Called once the deferred computation completes normally.
| |
| onError | back to summary |
|---|---|
| public void onError(Throwable e) Implements io. Doc from io. Notifies the MaybeObserver that the
If the | |
| onSubscribe | back to summary |
|---|---|
| public void onSubscribe(Disposable d) Implements io. Doc from io. Provides the MaybeObserver with the means of cancelling (disposing) the
connection (channel) with the Maybe in both
synchronous (from within
| |
| onSuccess | back to summary |
|---|---|
| public void onSuccess(T value) Implements io. Doc from io. Notifies the MaybeObserver with one item and that the
The
| |