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 | |
| pack-priv final Single |
| 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 | |
| source | back to summary |
|---|---|
| pack-priv final Single<T> source | |
| SingleDoOnLifecycle | back to summary |
|---|---|
| public SingleDoOnLifecycle(Single<T> upstream, Consumer<? super Disposable> onSubscribe, Action onDispose) | |
| subscribeActual | back to summary |
|---|---|
protected void subscribeActual(SingleObserver<? super T> observer)
| |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv final SingleObserver | |
| pack-priv final Action | |
| pack-priv final Consumer | |
| pack-priv Disposable |
| Access | Constructor and Description |
|---|---|
| pack-priv | SingleLifecycleObserver(SingleObserver<? 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 | |
| public void | |
| public void | onSuccess(T
the item emitted by the t)SingleImplements io. SingleObserver with a single item and that the Single has finished sending
push-based notifications.
|
| downstream | back to summary |
|---|---|
| pack-priv final SingleObserver<? 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 | |
| SingleLifecycleObserver | back to summary |
|---|---|
| pack-priv SingleLifecycleObserver(SingleObserver<? 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.
| |
| 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
| |