Class SingleFlatMap.SingleFlatMapCallback.FlatMapSingleObserver<R>
- java.lang.Object
-
- io.reactivex.rxjava3.internal.operators.single.SingleFlatMap.SingleFlatMapCallback.FlatMapSingleObserver<R>
-
- All Implemented Interfaces:
SingleObserver<R>
- Enclosing class:
- SingleFlatMap.SingleFlatMapCallback<T,R>
static final class SingleFlatMap.SingleFlatMapCallback.FlatMapSingleObserver<R> extends java.lang.Object implements SingleObserver<R>
-
-
Field Summary
Fields Modifier and Type Field Description (package private) SingleObserver<? super R>downstream(package private) java.util.concurrent.atomic.AtomicReference<Disposable>parent
-
Constructor Summary
Constructors Constructor Description FlatMapSingleObserver(java.util.concurrent.atomic.AtomicReference<Disposable> parent, SingleObserver<? super R> downstream)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidonError(java.lang.Throwable e)Notifies theSingleObserverthat theSinglehas experienced an error condition.voidonSubscribe(Disposable d)Provides theSingleObserverwith the means of cancelling (disposing) the connection (channel) with the Single in both synchronous (from withinonSubscribe(Disposable)itself) and asynchronous manner.voidonSuccess(R value)Notifies theSingleObserverwith a single item and that theSinglehas finished sending push-based notifications.
-
-
-
Field Detail
-
parent
final java.util.concurrent.atomic.AtomicReference<Disposable> parent
-
downstream
final SingleObserver<? super R> downstream
-
-
Constructor Detail
-
FlatMapSingleObserver
FlatMapSingleObserver(java.util.concurrent.atomic.AtomicReference<Disposable> parent, SingleObserver<? super R> downstream)
-
-
Method Detail
-
onSubscribe
public void onSubscribe(Disposable d)
Description copied from interface:SingleObserverProvides theSingleObserverwith the means of cancelling (disposing) the connection (channel) with the Single in both synchronous (from withinonSubscribe(Disposable)itself) and asynchronous manner.- Specified by:
onSubscribein interfaceSingleObserver<R>- Parameters:
d- the Disposable instance whoseDisposable.dispose()can be called anytime to cancel the connection
-
onSuccess
public void onSuccess(R value)
Description copied from interface:SingleObserverNotifies theSingleObserverwith a single item and that theSinglehas finished sending push-based notifications.The
Singlewill not call this method if it callsSingleObserver.onError(java.lang.Throwable).- Specified by:
onSuccessin interfaceSingleObserver<R>- Parameters:
value- the item emitted by theSingle
-
onError
public void onError(java.lang.Throwable e)
Description copied from interface:SingleObserverNotifies theSingleObserverthat theSinglehas experienced an error condition.If the
Singlecalls this method, it will not thereafter callSingleObserver.onSuccess(T).- Specified by:
onErrorin interfaceSingleObserver<R>- Parameters:
e- the exception encountered by theSingle
-
-