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
,Serializable
- Enclosing class:
ObservableConcatMapSingle<T,
R>
static final class ObservableConcatMapSingle.ConcatMapSingleMainObserver<T,R>
extends ConcatMapXMainObserver<T>
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) static final class
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) final ObservableConcatMapSingle.ConcatMapSingleMainObserver.ConcatMapSingleObserver
<R> (package private) R
(package private) final Function
<? super T, ? extends SingleSource<? extends R>> private static final long
(package private) int
(package private) static final int
An inner SingleSource is running but there are no results yet.(package private) static final int
No inner SingleSource is running.(package private) static final int
The inner SingleSource succeeded with a value initem
. -
Constructor Summary
ConstructorsConstructorDescriptionConcatMapSingleMainObserver
(Observer<? super R> downstream, Function<? super T, ? extends SingleSource<? extends R>> mapper, int prefetch, ErrorMode errorMode) -
Method Summary
Modifier and TypeMethodDescription(package private) void
Override this to clear values when the downstream disposes.(package private) void
Typically, this should beinner.dispose()
.(package private) void
drain()
Implement the serialized inner subscribing and value emission here.(package private) void
innerError
(Throwable ex) (package private) void
innerSuccess
(R item) (package private) void
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
Methods inherited from class java.lang.Number
byteValue, shortValue
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
downstream
-
mapper
-
inner
-
item
R item -
state
volatile int state -
STATE_INACTIVE
static final int STATE_INACTIVENo inner SingleSource is running.- See Also:
-
STATE_ACTIVE
static final int STATE_ACTIVEAn inner SingleSource is running but there are no results yet.- See Also:
-
STATE_RESULT_VALUE
static final int STATE_RESULT_VALUEThe inner SingleSource succeeded with a value initem
.- See Also:
-
-
Constructor Details
-
ConcatMapSingleMainObserver
-
-
Method Details
-
innerSuccess
-
innerError
-
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>
-