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 void
onError(java.lang.Throwable e)
Notifies theSingleObserver
that theSingle
has experienced an error condition.void
onSubscribe(Disposable d)
Provides theSingleObserver
with the means of cancelling (disposing) the connection (channel) with the Single in both synchronous (from withinonSubscribe(Disposable)
itself) and asynchronous manner.void
onSuccess(R value)
Notifies theSingleObserver
with a single item and that theSingle
has 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:SingleObserver
Provides theSingleObserver
with the means of cancelling (disposing) the connection (channel) with the Single in both synchronous (from withinonSubscribe(Disposable)
itself) and asynchronous manner.- Specified by:
onSubscribe
in 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:SingleObserver
Notifies theSingleObserver
with a single item and that theSingle
has finished sending push-based notifications.The
Single
will not call this method if it callsSingleObserver.onError(java.lang.Throwable)
.- Specified by:
onSuccess
in interfaceSingleObserver<R>
- Parameters:
value
- the item emitted by theSingle
-
onError
public void onError(java.lang.Throwable e)
Description copied from interface:SingleObserver
Notifies theSingleObserver
that theSingle
has experienced an error condition.If the
Single
calls this method, it will not thereafter callSingleObserver.onSuccess(T)
.- Specified by:
onError
in interfaceSingleObserver<R>
- Parameters:
e
- the exception encountered by theSingle
-
-