Class FlowableFlatMapCompletableCompletable.FlatMapCompletableMainSubscriber<T>
java.lang.Object
java.lang.Number
java.util.concurrent.atomic.AtomicInteger
io.reactivex.rxjava3.internal.operators.flowable.FlowableFlatMapCompletableCompletable.FlatMapCompletableMainSubscriber<T>
- All Implemented Interfaces:
FlowableSubscriber<T>, Disposable, Serializable, org.reactivestreams.Subscriber<T>
- Enclosing class:
FlowableFlatMapCompletableCompletable<T>
static final class FlowableFlatMapCompletableCompletable.FlatMapCompletableMainSubscriber<T>
extends AtomicInteger
implements FlowableSubscriber<T>, Disposable
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) final class -
Field Summary
FieldsModifier and TypeFieldDescription(package private) final boolean(package private) boolean(package private) final CompletableObserver(package private) final AtomicThrowable(package private) final Function<? super T, ? extends CompletableSource> (package private) final intprivate static final long(package private) final CompositeDisposable(package private) org.reactivestreams.Subscription -
Constructor Summary
ConstructorsConstructorDescriptionFlatMapCompletableMainSubscriber(CompletableObserver observer, Function<? super T, ? extends CompletableSource> mapper, boolean delayErrors, int maxConcurrency) -
Method Summary
Modifier and TypeMethodDescriptionvoiddispose()Dispose the resource, the operation should be idempotent.(package private) voidinnerComplete(FlowableFlatMapCompletableCompletable.FlatMapCompletableMainSubscriber<T>.InnerObserver inner) (package private) voidinnerError(FlowableFlatMapCompletableCompletable.FlatMapCompletableMainSubscriber<T>.InnerObserver inner, Throwable e) booleanReturns true if this resource has been disposed.voidvoidvoidvoidonSubscribe(org.reactivestreams.Subscription s) Implementors of this method should make sure everything that needs to be visible inSubscriber.onNext(Object)is established before callingSubscription.request(long).Methods 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
-
errors
-
mapper
-
delayErrors
final boolean delayErrors -
set
-
maxConcurrency
final int maxConcurrency -
upstream
org.reactivestreams.Subscription upstream -
disposed
volatile boolean disposed
-
-
Constructor Details
-
FlatMapCompletableMainSubscriber
FlatMapCompletableMainSubscriber(CompletableObserver observer, Function<? super T, ? extends CompletableSource> mapper, boolean delayErrors, int maxConcurrency)
-
-
Method Details
-
onSubscribe
public void onSubscribe(org.reactivestreams.Subscription s) Description copied from interface:FlowableSubscriberImplementors of this method should make sure everything that needs to be visible inSubscriber.onNext(Object)is established before callingSubscription.request(long). In practice this means no initialization should happen after therequest()call and additional behavior is thread safe in respect toonNext.- Specified by:
onSubscribein interfaceFlowableSubscriber<T>- Specified by:
onSubscribein interfaceorg.reactivestreams.Subscriber<T>
-
onNext
-
onError
-
onComplete
public void onComplete()- Specified by:
onCompletein interfaceorg.reactivestreams.Subscriber<T>
-
dispose
public void dispose()Description copied from interface:DisposableDispose the resource, the operation should be idempotent.- Specified by:
disposein interfaceDisposable
-
isDisposed
public boolean isDisposed()Description copied from interface:DisposableReturns true if this resource has been disposed.- Specified by:
isDisposedin interfaceDisposable- Returns:
- true if this resource has been disposed
-
innerComplete
void innerComplete(FlowableFlatMapCompletableCompletable.FlatMapCompletableMainSubscriber<T>.InnerObserver inner) -
innerError
void innerError(FlowableFlatMapCompletableCompletable.FlatMapCompletableMainSubscriber<T>.InnerObserver inner, Throwable e)
-