Class FlowableConcatMapSingle.ConcatMapSingleSubscriber<T,R>
java.lang.Object
java.lang.Number
java.util.concurrent.atomic.AtomicInteger
io.reactivex.rxjava3.internal.operators.mixed.ConcatMapXMainSubscriber<T>
io.reactivex.rxjava3.internal.operators.mixed.FlowableConcatMapSingle.ConcatMapSingleSubscriber<T,R>
- All Implemented Interfaces:
FlowableSubscriber<T>, Serializable, org.reactivestreams.Subscriber<T>, org.reactivestreams.Subscription
- Enclosing class:
FlowableConcatMapSingle<T,R>
static final class FlowableConcatMapSingle.ConcatMapSingleSubscriber<T,R>
extends ConcatMapXMainSubscriber<T>
implements org.reactivestreams.Subscription
- Since:
- 2.2
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) static final class -
Field Summary
FieldsModifier and TypeFieldDescription(package private) int(package private) final org.reactivestreams.Subscriber<? super R> (package private) long(package private) final FlowableConcatMapSingle.ConcatMapSingleSubscriber.ConcatMapSingleObserver<R> (package private) R(package private) final Function<? super T, ? extends SingleSource<? extends R>> (package private) final AtomicLongprivate static final long(package private) int(package private) static final intAn inner SingleSource is running but there are no results yet.(package private) static final intNo inner SingleSource is running.(package private) static final intThe inner SingleSource succeeded with a value initem. -
Constructor Summary
ConstructorsConstructorDescriptionConcatMapSingleSubscriber(org.reactivestreams.Subscriber<? super R> downstream, Function<? super T, ? extends SingleSource<? extends R>> mapper, int prefetch, ErrorMode errorMode) -
Method Summary
Modifier and TypeMethodDescriptionvoidcancel()(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) voidinnerError(Throwable ex) (package private) voidinnerSuccess(R item) (package private) voidTypically, this should bedownstream.onSubscribe(this);.voidrequest(long n) Methods inherited from class ConcatMapXMainSubscriber
onComplete, onError, onNext, onSubscribe, stopMethods 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
-
requested
-
inner
-
emitted
long emitted -
consumed
int consumed -
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
-
ConcatMapSingleSubscriber
-
-
Method Details
-
onSubscribeDownstream
void onSubscribeDownstream()Description copied from class:ConcatMapXMainSubscriberTypically, this should bedownstream.onSubscribe(this);.- Specified by:
onSubscribeDownstreamin classConcatMapXMainSubscriber<T>
-
request
public void request(long n) - Specified by:
requestin interfaceorg.reactivestreams.Subscription
-
cancel
public void cancel()- Specified by:
cancelin interfaceorg.reactivestreams.Subscription
-
clearValue
void clearValue()Description copied from class:ConcatMapXMainSubscriberOverride this to clear values when the downstream disposes.- Overrides:
clearValuein classConcatMapXMainSubscriber<T>
-
disposeInner
void disposeInner()Description copied from class:ConcatMapXMainSubscriberTypically, this should beinner.dispose().- Specified by:
disposeInnerin classConcatMapXMainSubscriber<T>
-
innerSuccess
-
innerError
-
drain
void drain()Description copied from class:ConcatMapXMainSubscriberImplement the serialized inner subscribing and value emission here.- Specified by:
drainin classConcatMapXMainSubscriber<T>
-