Top Fields Constructors Methods
io.reactivex.internal.operators.observable

public final Class ObservableDoOnLifecycle<T>

extends AbstractObservableWithUpstream<T, T>
Class Inheritance
Imports
io.reactivex.*, io.reactivex.disposables.Disposable, io.reactivex.functions.*, io.reactivex.internal.observers.DisposableLambdaObserver

Field Summary

Modifier and TypeField and Description
private final Action
private final Consumer<? super Disposable>
Inherited from io.reactivex.internal.operators.observable.AbstractObservableWithUpstream:
source

Constructor Summary

AccessConstructor and Description
public
ObservableDoOnLifecycle(Observable<T> upstream, Consumer<? super Disposable> onSubscribe, Action onDispose)

Method Summary

Modifier and TypeMethod and Description
protected void
subscribeActual(Observer<? super T>
the incoming Observer, never null
observer
)

Implements abstract io.reactivex.Observable.subscribeActual.

Operator implementations (both source and intermediate) should implement this method that performs the necessary business logic and handles the incoming Observers.
Inherited from io.reactivex.internal.operators.observable.AbstractObservableWithUpstream:
source

Field Detail

onDisposeback to summary
private final Action onDispose
onSubscribeback to summary
private final Consumer<? super Disposable> onSubscribe

Constructor Detail

ObservableDoOnLifecycleback to summary
public ObservableDoOnLifecycle(Observable<T> upstream, Consumer<? super Disposable> onSubscribe, Action onDispose)

Method Detail

subscribeActualback to summary
protected void subscribeActual(Observer<? super T> observer)

Implements abstract io.reactivex.Observable.subscribeActual.

Doc from io.reactivex.Observable.subscribeActual.

Operator implementations (both source and intermediate) should implement this method that performs the necessary business logic and handles the incoming Observers.

There is no need to call any of the plugin hooks on the current Observable instance or the Observer; all hooks and basic safeguards have been applied by subscribe(Observer) before this method gets called.

Parameters
observer:Observer<? super T>

the incoming Observer, never null

Annotations
@Override