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
,java.io.Serializable
,org.reactivestreams.Subscriber<T>
- Enclosing class:
- FlowableFlatMapCompletableCompletable<T>
static final class FlowableFlatMapCompletableCompletable.FlatMapCompletableMainSubscriber<T> extends java.util.concurrent.atomic.AtomicInteger implements FlowableSubscriber<T>, Disposable
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) class
FlowableFlatMapCompletableCompletable.FlatMapCompletableMainSubscriber.InnerObserver
-
Field Summary
Fields Modifier and Type Field Description (package private) boolean
delayErrors
(package private) boolean
disposed
(package private) CompletableObserver
downstream
(package private) AtomicThrowable
errors
(package private) Function<? super T,? extends CompletableSource>
mapper
(package private) int
maxConcurrency
private static long
serialVersionUID
(package private) CompositeDisposable
set
(package private) org.reactivestreams.Subscription
upstream
-
Constructor Summary
Constructors Constructor Description FlatMapCompletableMainSubscriber(CompletableObserver observer, Function<? super T,? extends CompletableSource> mapper, boolean delayErrors, int maxConcurrency)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
dispose()
Dispose the resource, the operation should be idempotent.(package private) void
innerComplete(FlowableFlatMapCompletableCompletable.FlatMapCompletableMainSubscriber.InnerObserver inner)
(package private) void
innerError(FlowableFlatMapCompletableCompletable.FlatMapCompletableMainSubscriber.InnerObserver inner, java.lang.Throwable e)
boolean
isDisposed()
Returns true if this resource has been disposed.void
onComplete()
void
onError(java.lang.Throwable e)
void
onNext(T value)
void
onSubscribe(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 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
-
downstream
final CompletableObserver downstream
-
errors
final AtomicThrowable errors
-
mapper
final Function<? super T,? extends CompletableSource> mapper
-
delayErrors
final boolean delayErrors
-
set
final CompositeDisposable set
-
maxConcurrency
final int maxConcurrency
-
upstream
org.reactivestreams.Subscription upstream
-
disposed
volatile boolean disposed
-
-
Constructor Detail
-
FlatMapCompletableMainSubscriber
FlatMapCompletableMainSubscriber(CompletableObserver observer, Function<? super T,? extends CompletableSource> mapper, boolean delayErrors, int maxConcurrency)
-
-
Method Detail
-
onSubscribe
public void onSubscribe(org.reactivestreams.Subscription s)
Description copied from interface:FlowableSubscriber
Implementors 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:
onSubscribe
in interfaceFlowableSubscriber<T>
- Specified by:
onSubscribe
in interfaceorg.reactivestreams.Subscriber<T>
-
onNext
public void onNext(T value)
- Specified by:
onNext
in interfaceorg.reactivestreams.Subscriber<T>
-
onError
public void onError(java.lang.Throwable e)
- Specified by:
onError
in interfaceorg.reactivestreams.Subscriber<T>
-
onComplete
public void onComplete()
- Specified by:
onComplete
in interfaceorg.reactivestreams.Subscriber<T>
-
dispose
public void dispose()
Description copied from interface:Disposable
Dispose the resource, the operation should be idempotent.- Specified by:
dispose
in interfaceDisposable
-
isDisposed
public boolean isDisposed()
Description copied from interface:Disposable
Returns true if this resource has been disposed.- Specified by:
isDisposed
in interfaceDisposable
- Returns:
- true if this resource has been disposed
-
innerComplete
void innerComplete(FlowableFlatMapCompletableCompletable.FlatMapCompletableMainSubscriber.InnerObserver inner)
-
innerError
void innerError(FlowableFlatMapCompletableCompletable.FlatMapCompletableMainSubscriber.InnerObserver inner, java.lang.Throwable e)
-
-