Top Description Fields Constructors Methods
io.reactivex.rxjava3.internal.operators.mixed

public abstract Class ConcatMapXMainObserver<T>

extends AtomicInteger
implements Observer<T>, Disposable
Class Inheritance
All Implemented Interfaces
io.reactivex.rxjava3.disposables.Disposable, io.reactivex.rxjava3.core.Observer
Known Direct Subclasses
io.reactivex.rxjava3.internal.operators.mixed.ObservableConcatMapCompletable.ConcatMapCompletableObserver, io.reactivex.rxjava3.internal.operators.mixed.ObservableConcatMapMaybe.ConcatMapMaybeMainObserver, io.reactivex.rxjava3.internal.operators.mixed.ObservableConcatMapSingle.ConcatMapSingleMainObserver
Type Parameters
<T>
the upstream value type
Imports
java.util.concurrent.atomic.AtomicInteger, io.reactivex.rxjava3.core.Observer, io.reactivex.rxjava3.disposables.Disposable, io.reactivex.rxjava3.internal.disposables.DisposableHelper, io.reactivex.rxjava3.internal.util.*, io.reactivex.rxjava3.operators.QueueDisposable, .QueueFuseable, .SimpleQueue, .SpscLinkedArrayQueue

Base class for implementing concatMapX main observers.
Since
3.0.10

Field Summary

Modifier and TypeField and Description
pack-priv volatile boolean
pack-priv volatile boolean
pack-priv final ErrorMode
pack-priv final AtomicThrowable
pack-priv final int
pack-priv SimpleQueue<T>
private static final long
pack-priv Disposable

Constructor Summary

AccessConstructor and Description
public
ConcatMapXMainObserver(int prefetch, ErrorMode errorMode)

Method Summary

Modifier and TypeMethod and Description
pack-priv void
clearValue()

Override this to clear values when the downstream disposes.

public final void
dispose()

Implements io.reactivex.rxjava3.disposables.Disposable.dispose.

Dispose the resource, the operation should be idempotent.
pack-priv abstract void
disposeInner()

Typically, this should be inner.dispose().

pack-priv abstract void
drain()

Implement the serialized inner subscribing and value emission here.

public final boolean
isDisposed()

Implements io.reactivex.rxjava3.disposables.Disposable.isDisposed.

Returns true if this resource has been disposed.
public final void
onComplete()

Implements io.reactivex.rxjava3.core.Observer.onComplete.

Notifies the Observer that the Observable has finished sending push-based notifications.
public final void
public final void
onNext(T
the item emitted by the Observable
t
)

Implements io.reactivex.rxjava3.core.Observer.onNext.

Provides the Observer with a new item to observe.
public final void
pack-priv abstract void
onSubscribeDownstream()

Typically, this should be downstream.onSubscribe(this).

Inherited from java.util.concurrent.atomic.AtomicInteger:
accumulateAndGetaddAndGetcompareAndExchangecompareAndExchangeAcquirecompareAndExchangeReleasecompareAndSetdecrementAndGetdoubleValuefloatValuegetgetAcquiregetAndAccumulategetAndAddgetAndDecrementgetAndIncrementgetAndSetgetAndUpdategetOpaquegetPlainincrementAndGetintValuelazySetlongValuesetsetOpaquesetPlainsetReleasetoStringupdateAndGetweakCompareAndSetweakCompareAndSetAcquireweakCompareAndSetPlainweakCompareAndSetReleaseweakCompareAndSetVolatile

Field Detail

disposedback to summary
pack-priv volatile boolean disposed
doneback to summary
pack-priv volatile boolean done
errorModeback to summary
pack-priv final ErrorMode errorMode
errorsback to summary
pack-priv final AtomicThrowable errors
prefetchback to summary
pack-priv final int prefetch
queueback to summary
pack-priv SimpleQueue<T> queue
serialVersionUIDback to summary
private static final long serialVersionUID

Hides java.util.concurrent.atomic.AtomicInteger.serialVersionUID.

upstreamback to summary
pack-priv Disposable upstream

Constructor Detail

ConcatMapXMainObserverback to summary
public ConcatMapXMainObserver(int prefetch, ErrorMode errorMode)

Method Detail

clearValueback to summary
pack-priv void clearValue()

Override this to clear values when the downstream disposes.

disposeback to summary
public final void dispose()

Implements io.reactivex.rxjava3.disposables.Disposable.dispose.

Doc from io.reactivex.rxjava3.disposables.Disposable.dispose.

Dispose the resource, the operation should be idempotent.

Annotations
@Override
disposeInnerback to summary
pack-priv abstract void disposeInner()

Typically, this should be inner.dispose().

drainback to summary
pack-priv abstract void drain()

Implement the serialized inner subscribing and value emission here.

isDisposedback to summary
public final boolean isDisposed()

Implements io.reactivex.rxjava3.disposables.Disposable.isDisposed.

Doc from io.reactivex.rxjava3.disposables.Disposable.isDisposed.

Returns true if this resource has been disposed.

Returns:boolean

true if this resource has been disposed

Annotations
@Override
onCompleteback to summary
public final void onComplete()

Implements io.reactivex.rxjava3.core.Observer.onComplete.

Doc from io.reactivex.rxjava3.core.Observer.onComplete.

Notifies the Observer that the Observable has finished sending push-based notifications.

The Observable will not call this method if it calls onError.

Annotations
@Override
onErrorback to summary
public final void onError(Throwable t)
Annotations
@Override
onNextback to summary
public final void onNext(T t)

Implements io.reactivex.rxjava3.core.Observer.onNext.

Doc from io.reactivex.rxjava3.core.Observer.onNext.

Provides the Observer with a new item to observe.

The Observable may call this method 0 or more times.

The Observable will not call this method again after it calls either onComplete or onError.

Parameters
t:T

the item emitted by the Observable

Annotations
@Override
onSubscribeback to summary
public final void onSubscribe(Disposable d)
Annotations
@Override
onSubscribeDownstreamback to summary
pack-priv abstract void onSubscribeDownstream()

Typically, this should be downstream.onSubscribe(this).