onSubscribe from upstream and
dispose from downstream.
| Modifier and Type | Class and Description |
|---|---|
| pack-priv static class |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv final Action | |
| pack-priv final Consumer |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected void |
| onDispose | back to summary |
|---|---|
| pack-priv final Action onDispose | |
| onSubscribe | back to summary |
|---|---|
| pack-priv final Consumer<? super Disposable> onSubscribe | |
| MaybeDoOnLifecycle | back to summary |
|---|---|
| public MaybeDoOnLifecycle(Maybe<T> upstream, Consumer<? super Disposable> onSubscribe, Action onDispose) | |
| subscribeActual | back to summary |
|---|---|
protected void subscribeActual(MaybeObserver<? super T> observer)
| |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv final MaybeObserver | |
| pack-priv final Action | |
| pack-priv final Consumer | |
| pack-priv Disposable |
| Access | Constructor and Description |
|---|---|
| pack-priv | MaybeLifecycleObserver(MaybeObserver<? super T> downstream, Consumer<? super Disposable> onSubscribe, Action onDispose)
|
| Modifier and Type | Method and Description |
|---|---|
| public void | dispose()
Implements io. |
| public boolean | isDisposed()
Implements io. |
| public void | onComplete()
Implements io. |
| public void | |
| public void | |
| public void | onSuccess(T
the item emitted by the t)MaybeImplements io. MaybeObserver with one item and that the Maybe has finished sending
push-based notifications.
|
| downstream | back to summary |
|---|---|
| pack-priv final MaybeObserver<? super T> downstream | |
| onDispose | back to summary |
|---|---|
| pack-priv final Action onDispose | |
| onSubscribe | back to summary |
|---|---|
| pack-priv final Consumer<? super Disposable> onSubscribe | |
| upstream | back to summary |
|---|---|
| pack-priv Disposable upstream | |
| MaybeLifecycleObserver | back to summary |
|---|---|
| pack-priv MaybeLifecycleObserver(MaybeObserver<? super T> downstream, Consumer<? super Disposable> onSubscribe, Action onDispose) | |
| dispose | back to summary |
|---|---|
| public void dispose() Implements io. Doc from io. Dispose the resource, the operation should be idempotent.
| |
| 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(@NonNull Throwable e)
| |
| onSubscribe | back to summary |
|---|---|
public void onSubscribe(@NonNull Disposable d)
| |
| onSuccess | back to summary |
|---|---|
| public void onSuccess(T t) Implements io. Doc from io. Notifies the
The
| |