Class ObservableConcatMapSingle.ConcatMapSingleMainObserver<T,R>
- java.lang.Object
-
- java.lang.Number
-
- java.util.concurrent.atomic.AtomicInteger
-
- io.reactivex.rxjava3.internal.operators.mixed.ConcatMapXMainObserver<T>
-
- io.reactivex.rxjava3.internal.operators.mixed.ObservableConcatMapSingle.ConcatMapSingleMainObserver<T,R>
-
- All Implemented Interfaces:
Observer<T>,Disposable,java.io.Serializable
- Enclosing class:
- ObservableConcatMapSingle<T,R>
static final class ObservableConcatMapSingle.ConcatMapSingleMainObserver<T,R> extends ConcatMapXMainObserver<T>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static classObservableConcatMapSingle.ConcatMapSingleMainObserver.ConcatMapSingleObserver<R>
-
Field Summary
Fields Modifier and Type Field Description (package private) Observer<? super R>downstream(package private) ObservableConcatMapSingle.ConcatMapSingleMainObserver.ConcatMapSingleObserver<R>inner(package private) Ritem(package private) Function<? super T,? extends SingleSource<? extends R>>mapperprivate static longserialVersionUID(package private) intstate(package private) static intSTATE_ACTIVEAn inner SingleSource is running but there are no results yet.(package private) static intSTATE_INACTIVENo inner SingleSource is running.(package private) static intSTATE_RESULT_VALUEThe inner SingleSource succeeded with a value initem.
-
Constructor Summary
Constructors Constructor Description ConcatMapSingleMainObserver(Observer<? super R> downstream, Function<? super T,? extends SingleSource<? extends R>> mapper, int prefetch, ErrorMode errorMode)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) voidclearValue()Override this to clear values when the downstream disposes.(package private) voiddisposeInner()Typically, this should beinner.dispose().(package private) voiddrain()Implement the serialized inner subscribing and value emission here.(package private) voidinnerError(java.lang.Throwable ex)(package private) voidinnerSuccess(R item)(package private) voidonSubscribeDownstream()Typically, this should bedownstream.onSubscribe(this).-
Methods inherited from class io.reactivex.rxjava3.internal.operators.mixed.ConcatMapXMainObserver
dispose, isDisposed, onComplete, onError, onNext, onSubscribe
-
Methods inherited from class java.util.concurrent.atomic.AtomicInteger
accumulateAndGet, addAndGet, compareAndExchange, compareAndExchangeAcquire, compareAndExchangeRelease, compareAndSet, decrementAndGet, doubleValue, floatValue, get, getAcquire, getAndAccumulate, getAndAdd, getAndDecrement, getAndIncrement, getAndSet, getAndUpdate, getOpaque, getPlain, incrementAndGet, intValue, lazySet, longValue, set, setOpaque, setPlain, setRelease, toString, updateAndGet, weakCompareAndSet, weakCompareAndSetAcquire, weakCompareAndSetPlain, weakCompareAndSetRelease, weakCompareAndSetVolatile
-
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
mapper
final Function<? super T,? extends SingleSource<? extends R>> mapper
-
inner
final ObservableConcatMapSingle.ConcatMapSingleMainObserver.ConcatMapSingleObserver<R> inner
-
item
R item
-
state
volatile int state
-
STATE_INACTIVE
static final int STATE_INACTIVE
No inner SingleSource is running.- See Also:
- Constant Field Values
-
STATE_ACTIVE
static final int STATE_ACTIVE
An inner SingleSource is running but there are no results yet.- See Also:
- Constant Field Values
-
STATE_RESULT_VALUE
static final int STATE_RESULT_VALUE
The inner SingleSource succeeded with a value initem.- See Also:
- Constant Field Values
-
-
Method Detail
-
innerSuccess
void innerSuccess(R item)
-
innerError
void innerError(java.lang.Throwable ex)
-
disposeInner
void disposeInner()
Description copied from class:ConcatMapXMainObserverTypically, this should beinner.dispose().- Specified by:
disposeInnerin classConcatMapXMainObserver<T>
-
onSubscribeDownstream
void onSubscribeDownstream()
Description copied from class:ConcatMapXMainObserverTypically, this should bedownstream.onSubscribe(this).- Specified by:
onSubscribeDownstreamin classConcatMapXMainObserver<T>
-
clearValue
void clearValue()
Description copied from class:ConcatMapXMainObserverOverride this to clear values when the downstream disposes.- Overrides:
clearValuein classConcatMapXMainObserver<T>
-
drain
void drain()
Description copied from class:ConcatMapXMainObserverImplement the serialized inner subscribing and value emission here.- Specified by:
drainin classConcatMapXMainObserver<T>
-
-