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 class
ObservableConcatMapSingle.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) R
item
(package private) Function<? super T,? extends SingleSource<? extends R>>
mapper
private static long
serialVersionUID
(package private) int
state
(package private) static int
STATE_ACTIVE
An inner SingleSource is running but there are no results yet.(package private) static int
STATE_INACTIVE
No inner SingleSource is running.(package private) static int
STATE_RESULT_VALUE
The 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) void
clearValue()
Override this to clear values when the downstream disposes.(package private) void
disposeInner()
Typically, this should beinner.dispose()
.(package private) void
drain()
Implement the serialized inner subscribing and value emission here.(package private) void
innerError(java.lang.Throwable ex)
(package private) void
innerSuccess(R item)
(package private) void
onSubscribeDownstream()
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:ConcatMapXMainObserver
Typically, this should beinner.dispose()
.- Specified by:
disposeInner
in classConcatMapXMainObserver<T>
-
onSubscribeDownstream
void onSubscribeDownstream()
Description copied from class:ConcatMapXMainObserver
Typically, this should bedownstream.onSubscribe(this)
.- Specified by:
onSubscribeDownstream
in classConcatMapXMainObserver<T>
-
clearValue
void clearValue()
Description copied from class:ConcatMapXMainObserver
Override this to clear values when the downstream disposes.- Overrides:
clearValue
in classConcatMapXMainObserver<T>
-
drain
void drain()
Description copied from class:ConcatMapXMainObserver
Implement the serialized inner subscribing and value emission here.- Specified by:
drain
in classConcatMapXMainObserver<T>
-
-