Class FlowableConcatWithCompletable.ConcatWithSubscriber<T>
java.lang.Object
java.util.concurrent.atomic.AtomicReference<Disposable>
io.reactivex.rxjava3.internal.operators.flowable.FlowableConcatWithCompletable.ConcatWithSubscriber<T>
- All Implemented Interfaces:
CompletableObserver
,FlowableSubscriber<T>
,Serializable
,org.reactivestreams.Subscriber<T>
,org.reactivestreams.Subscription
- Enclosing class:
FlowableConcatWithCompletable<T>
static final class FlowableConcatWithCompletable.ConcatWithSubscriber<T>
extends AtomicReference<Disposable>
implements FlowableSubscriber<T>, CompletableObserver, org.reactivestreams.Subscription
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) final org.reactivestreams.Subscriber
<? super T> (package private) boolean
(package private) CompletableSource
private static final long
(package private) org.reactivestreams.Subscription
-
Constructor Summary
ConstructorsConstructorDescriptionConcatWithSubscriber
(org.reactivestreams.Subscriber<? super T> actual, CompletableSource other) -
Method Summary
Modifier and TypeMethodDescriptionvoid
cancel()
void
Called once the deferred computation completes normally.void
Called once if the deferred computation 'throws' an exception.void
void
Called once by theCompletable
to set aDisposable
on this instance which then can be used to cancel the subscription at any time.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)
.void
request
(long n) Methods inherited from class java.util.concurrent.atomic.AtomicReference
accumulateAndGet, compareAndExchange, compareAndExchangeAcquire, compareAndExchangeRelease, compareAndSet, get, getAcquire, getAndAccumulate, getAndSet, getAndUpdate, getOpaque, getPlain, lazySet, set, setOpaque, setPlain, setRelease, toString, updateAndGet, weakCompareAndSet, weakCompareAndSetAcquire, weakCompareAndSetPlain, weakCompareAndSetRelease, weakCompareAndSetVolatile
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
downstream
-
upstream
org.reactivestreams.Subscription upstream -
other
CompletableSource other -
inCompletable
boolean inCompletable
-
-
Constructor Details
-
ConcatWithSubscriber
ConcatWithSubscriber(org.reactivestreams.Subscriber<? super T> actual, CompletableSource other)
-
-
Method Details
-
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>
-
onSubscribe
Description copied from interface:CompletableObserver
Called once by theCompletable
to set aDisposable
on this instance which then can be used to cancel the subscription at any time.- Specified by:
onSubscribe
in interfaceCompletableObserver
- Parameters:
d
- theDisposable
instance to call dispose on for cancellation, not null
-
onNext
- Specified by:
onNext
in interfaceorg.reactivestreams.Subscriber<T>
-
onError
Description copied from interface:CompletableObserver
Called once if the deferred computation 'throws' an exception.- Specified by:
onError
in interfaceCompletableObserver
- Specified by:
onError
in interfaceorg.reactivestreams.Subscriber<T>
- Parameters:
t
- the exception, notnull
.
-
onComplete
public void onComplete()Description copied from interface:CompletableObserver
Called once the deferred computation completes normally.- Specified by:
onComplete
in interfaceCompletableObserver
- Specified by:
onComplete
in interfaceorg.reactivestreams.Subscriber<T>
-
request
public void request(long n) - Specified by:
request
in interfaceorg.reactivestreams.Subscription
-
cancel
public void cancel()- Specified by:
cancel
in interfaceorg.reactivestreams.Subscription
-