Class FlowableSwitchMapSingle.SwitchMapSingleSubscriber.SwitchMapSingleObserver<R>
- java.lang.Object
-
- java.util.concurrent.atomic.AtomicReference<Disposable>
-
- io.reactivex.rxjava3.internal.operators.mixed.FlowableSwitchMapSingle.SwitchMapSingleSubscriber.SwitchMapSingleObserver<R>
-
- All Implemented Interfaces:
SingleObserver<R>,java.io.Serializable
- Enclosing class:
- FlowableSwitchMapSingle.SwitchMapSingleSubscriber<T,R>
static final class FlowableSwitchMapSingle.SwitchMapSingleSubscriber.SwitchMapSingleObserver<R> extends java.util.concurrent.atomic.AtomicReference<Disposable> implements SingleObserver<R>
-
-
Field Summary
Fields Modifier and Type Field Description (package private) Ritem(package private) FlowableSwitchMapSingle.SwitchMapSingleSubscriber<?,R>parentprivate static longserialVersionUID
-
Constructor Summary
Constructors Constructor Description SwitchMapSingleObserver(FlowableSwitchMapSingle.SwitchMapSingleSubscriber<?,R> parent)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) voiddispose()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 t)Notifies theSingleObserverwith a single item and that theSinglehas finished sending push-based notifications.-
Methods inherited from class java.util.concurrent.atomic.AtomicReference
accumulateAndGet, compareAndExchange, compareAndExchangeAcquire, compareAndExchangeRelease, compareAndSet, get, getAcquire, getAndAccumulate, getAndSet, getAndUpdate, getOpaque, getPlain, lazySet, set, setOpaque, setPlain, setRelease, toString, updateAndGet, weakCompareAndSet, weakCompareAndSetAcquire, weakCompareAndSetPlain, weakCompareAndSetRelease, weakCompareAndSetVolatile
-
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
parent
final FlowableSwitchMapSingle.SwitchMapSingleSubscriber<?,R> parent
-
item
volatile R item
-
-
Constructor Detail
-
SwitchMapSingleObserver
SwitchMapSingleObserver(FlowableSwitchMapSingle.SwitchMapSingleSubscriber<?,R> parent)
-
-
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 t)
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:
t- 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
-
dispose
void dispose()
-
-