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>,java.io.Serializable,org.reactivestreams.Subscriber<T>,org.reactivestreams.Subscription
- Enclosing class:
- FlowableConcatWithCompletable<T>
static final class FlowableConcatWithCompletable.ConcatWithSubscriber<T> extends java.util.concurrent.atomic.AtomicReference<Disposable> implements FlowableSubscriber<T>, CompletableObserver, org.reactivestreams.Subscription
-
-
Field Summary
Fields Modifier and Type Field Description (package private) org.reactivestreams.Subscriber<? super T>downstream(package private) booleaninCompletable(package private) CompletableSourceotherprivate static longserialVersionUID(package private) org.reactivestreams.Subscriptionupstream
-
Constructor Summary
Constructors Constructor Description ConcatWithSubscriber(org.reactivestreams.Subscriber<? super T> actual, CompletableSource other)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcancel()voidonComplete()Called once the deferred computation completes normally.voidonError(java.lang.Throwable t)Called once if the deferred computation 'throws' an exception.voidonNext(T t)voidonSubscribe(Disposable d)Called once by theCompletableto set aDisposableon this instance which then can be used to cancel the subscription at any time.voidonSubscribe(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).voidrequest(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 Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
downstream
final org.reactivestreams.Subscriber<? super T> downstream
-
upstream
org.reactivestreams.Subscription upstream
-
other
CompletableSource other
-
inCompletable
boolean inCompletable
-
-
Constructor Detail
-
ConcatWithSubscriber
ConcatWithSubscriber(org.reactivestreams.Subscriber<? super T> actual, CompletableSource other)
-
-
Method Detail
-
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>
-
onSubscribe
public void onSubscribe(Disposable d)
Description copied from interface:CompletableObserverCalled once by theCompletableto set aDisposableon this instance which then can be used to cancel the subscription at any time.- Specified by:
onSubscribein interfaceCompletableObserver- Parameters:
d- theDisposableinstance to call dispose on for cancellation, not null
-
onError
public void onError(java.lang.Throwable t)
Description copied from interface:CompletableObserverCalled once if the deferred computation 'throws' an exception.- Specified by:
onErrorin interfaceCompletableObserver- Specified by:
onErrorin interfaceorg.reactivestreams.Subscriber<T>- Parameters:
t- the exception, notnull.
-
onComplete
public void onComplete()
Description copied from interface:CompletableObserverCalled once the deferred computation completes normally.- Specified by:
onCompletein interfaceCompletableObserver- Specified by:
onCompletein interfaceorg.reactivestreams.Subscriber<T>
-
request
public void request(long n)
- Specified by:
requestin interfaceorg.reactivestreams.Subscription
-
cancel
public void cancel()
- Specified by:
cancelin interfaceorg.reactivestreams.Subscription
-
-