Class ObservableConcatMapMaybe.ConcatMapMaybeMainObserver<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.ObservableConcatMapMaybe.ConcatMapMaybeMainObserver<T,R>
- All Implemented Interfaces:
Observer<T>, Disposable, Serializable
- Enclosing class:
ObservableConcatMapMaybe<T,R>
static final class ObservableConcatMapMaybe.ConcatMapMaybeMainObserver<T,R>
extends ConcatMapXMainObserver<T>
- Since:
- 2.2
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) static final class -
Field Summary
FieldsModifier and TypeFieldDescription(package private) final ObservableConcatMapMaybe.ConcatMapMaybeMainObserver.ConcatMapMaybeObserver<R> (package private) R(package private) final Function<? super T, ? extends MaybeSource<? extends R>> private static final long(package private) int(package private) static final intAn inner MaybeSource is running but there are no results yet.(package private) static final intNo inner MaybeSource is running.(package private) static final intThe inner MaybeSource succeeded with a value initem. -
Constructor Summary
ConstructorsConstructorDescriptionConcatMapMaybeMainObserver(Observer<? super R> downstream, Function<? super T, ? extends MaybeSource<? extends R>> mapper, int prefetch, ErrorMode errorMode) -
Method Summary
Modifier and TypeMethodDescription(package private) voidOverride this to clear values when the downstream disposes.(package private) voidTypically, this should beinner.dispose().(package private) voiddrain()Implement the serialized inner subscribing and value emission here.(package private) void(package private) voidinnerError(Throwable ex) (package private) voidinnerSuccess(R item) (package private) voidTypically, this should bedownstream.onSubscribe(this).Methods inherited from class ConcatMapXMainObserver
dispose, isDisposed, onComplete, onError, onNext, onSubscribeMethods inherited from class 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, weakCompareAndSetVolatileMethods inherited from class 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 MaybeSource is running.- See Also:
-
STATE_ACTIVE
static final int STATE_ACTIVEAn inner MaybeSource is running but there are no results yet.- See Also:
-
STATE_RESULT_VALUE
-
-
Constructor Details
-
ConcatMapMaybeMainObserver
-
-
Method Details
-
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>
-
innerSuccess
-
innerComplete
void innerComplete() -
innerError
-
disposeInner
void disposeInner()Description copied from class:ConcatMapXMainObserverTypically, this should beinner.dispose().- Specified by:
disposeInnerin classConcatMapXMainObserver<T>
-
drain
void drain()Description copied from class:ConcatMapXMainObserverImplement the serialized inner subscribing and value emission here.- Specified by:
drainin classConcatMapXMainObserver<T>
-