Class CompletableConcat.CompletableConcatSubscriber
- java.lang.Object
-
- java.lang.Number
-
- java.util.concurrent.atomic.AtomicInteger
-
- io.reactivex.rxjava3.internal.operators.completable.CompletableConcat.CompletableConcatSubscriber
-
- All Implemented Interfaces:
FlowableSubscriber<CompletableSource>
,Disposable
,java.io.Serializable
,org.reactivestreams.Subscriber<CompletableSource>
- Enclosing class:
- CompletableConcat
static final class CompletableConcat.CompletableConcatSubscriber extends java.util.concurrent.atomic.AtomicInteger implements FlowableSubscriber<CompletableSource>, Disposable
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static class
CompletableConcat.CompletableConcatSubscriber.ConcatInnerObserver
-
Field Summary
Fields Modifier and Type Field Description (package private) boolean
active
(package private) int
consumed
(package private) boolean
done
(package private) CompletableObserver
downstream
(package private) CompletableConcat.CompletableConcatSubscriber.ConcatInnerObserver
inner
(package private) int
limit
(package private) java.util.concurrent.atomic.AtomicBoolean
once
(package private) int
prefetch
(package private) SimpleQueue<CompletableSource>
queue
private static long
serialVersionUID
(package private) int
sourceFused
(package private) org.reactivestreams.Subscription
upstream
-
Constructor Summary
Constructors Constructor Description CompletableConcatSubscriber(CompletableObserver actual, int prefetch)
-
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
drain()
(package private) void
innerComplete()
(package private) void
innerError(java.lang.Throwable e)
boolean
isDisposed()
Returns true if this resource has been disposed.void
onComplete()
void
onError(java.lang.Throwable t)
void
onNext(CompletableSource t)
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)
.(package private) void
request()
-
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
-
prefetch
final int prefetch
-
limit
final int limit
-
inner
final CompletableConcat.CompletableConcatSubscriber.ConcatInnerObserver inner
-
once
final java.util.concurrent.atomic.AtomicBoolean once
-
sourceFused
int sourceFused
-
consumed
int consumed
-
queue
SimpleQueue<CompletableSource> queue
-
upstream
org.reactivestreams.Subscription upstream
-
done
volatile boolean done
-
active
volatile boolean active
-
-
Constructor Detail
-
CompletableConcatSubscriber
CompletableConcatSubscriber(CompletableObserver actual, int prefetch)
-
-
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<CompletableSource>
- Specified by:
onSubscribe
in interfaceorg.reactivestreams.Subscriber<CompletableSource>
-
onNext
public void onNext(CompletableSource t)
- Specified by:
onNext
in interfaceorg.reactivestreams.Subscriber<CompletableSource>
-
onError
public void onError(java.lang.Throwable t)
- Specified by:
onError
in interfaceorg.reactivestreams.Subscriber<CompletableSource>
-
onComplete
public void onComplete()
- Specified by:
onComplete
in interfaceorg.reactivestreams.Subscriber<CompletableSource>
-
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
-
drain
void drain()
-
request
void request()
-
innerError
void innerError(java.lang.Throwable e)
-
innerComplete
void innerComplete()
-
-