Class ObservableJoin.JoinDisposable<TLeft,TRight,TLeftEnd,TRightEnd,R>
- java.lang.Object
-
- java.lang.Number
-
- java.util.concurrent.atomic.AtomicInteger
-
- io.reactivex.rxjava3.internal.operators.observable.ObservableJoin.JoinDisposable<TLeft,TRight,TLeftEnd,TRightEnd,R>
-
- All Implemented Interfaces:
Disposable,ObservableGroupJoin.JoinSupport,java.io.Serializable
static final class ObservableJoin.JoinDisposable<TLeft,TRight,TLeftEnd,TRightEnd,R> extends java.util.concurrent.atomic.AtomicInteger implements Disposable, ObservableGroupJoin.JoinSupport
-
-
Field Summary
Fields Modifier and Type Field Description (package private) java.util.concurrent.atomic.AtomicIntegeractive(package private) booleancancelled(package private) CompositeDisposabledisposables(package private) Observer<? super R>downstream(package private) java.util.concurrent.atomic.AtomicReference<java.lang.Throwable>error(package private) static java.lang.IntegerLEFT_CLOSE(package private) static java.lang.IntegerLEFT_VALUE(package private) Function<? super TLeft,? extends ObservableSource<TLeftEnd>>leftEnd(package private) intleftIndex(package private) java.util.Map<java.lang.Integer,TLeft>lefts(package private) SpscLinkedArrayQueue<java.lang.Object>queue(package private) BiFunction<? super TLeft,? super TRight,? extends R>resultSelector(package private) static java.lang.IntegerRIGHT_CLOSE(package private) static java.lang.IntegerRIGHT_VALUE(package private) Function<? super TRight,? extends ObservableSource<TRightEnd>>rightEnd(package private) intrightIndex(package private) java.util.Map<java.lang.Integer,TRight>rightsprivate static longserialVersionUID
-
Constructor Summary
Constructors Constructor Description JoinDisposable(Observer<? super R> actual, Function<? super TLeft,? extends ObservableSource<TLeftEnd>> leftEnd, Function<? super TRight,? extends ObservableSource<TRightEnd>> rightEnd, BiFunction<? super TLeft,? super TRight,? extends R> resultSelector)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) voidcancelAll()voiddispose()Dispose the resource, the operation should be idempotent.(package private) voiddrain()(package private) voiderrorAll(Observer<?> a)(package private) voidfail(java.lang.Throwable exc, Observer<?> a, SpscLinkedArrayQueue<?> q)voidinnerClose(boolean isLeft, ObservableGroupJoin.LeftRightEndObserver index)voidinnerCloseError(java.lang.Throwable ex)voidinnerComplete(ObservableGroupJoin.LeftRightObserver sender)voidinnerError(java.lang.Throwable ex)voidinnerValue(boolean isLeft, java.lang.Object o)booleanisDisposed()Returns true if this resource has been disposed.-
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
-
queue
final SpscLinkedArrayQueue<java.lang.Object> queue
-
disposables
final CompositeDisposable disposables
-
lefts
final java.util.Map<java.lang.Integer,TLeft> lefts
-
rights
final java.util.Map<java.lang.Integer,TRight> rights
-
error
final java.util.concurrent.atomic.AtomicReference<java.lang.Throwable> error
-
leftEnd
final Function<? super TLeft,? extends ObservableSource<TLeftEnd>> leftEnd
-
rightEnd
final Function<? super TRight,? extends ObservableSource<TRightEnd>> rightEnd
-
resultSelector
final BiFunction<? super TLeft,? super TRight,? extends R> resultSelector
-
active
final java.util.concurrent.atomic.AtomicInteger active
-
leftIndex
int leftIndex
-
rightIndex
int rightIndex
-
cancelled
volatile boolean cancelled
-
LEFT_VALUE
static final java.lang.Integer LEFT_VALUE
-
RIGHT_VALUE
static final java.lang.Integer RIGHT_VALUE
-
LEFT_CLOSE
static final java.lang.Integer LEFT_CLOSE
-
RIGHT_CLOSE
static final java.lang.Integer RIGHT_CLOSE
-
-
Constructor Detail
-
JoinDisposable
JoinDisposable(Observer<? super R> actual, Function<? super TLeft,? extends ObservableSource<TLeftEnd>> leftEnd, Function<? super TRight,? extends ObservableSource<TRightEnd>> rightEnd, BiFunction<? super TLeft,? super TRight,? extends R> resultSelector)
-
-
Method Detail
-
dispose
public void dispose()
Description copied from interface:DisposableDispose the resource, the operation should be idempotent.- Specified by:
disposein interfaceDisposable
-
isDisposed
public boolean isDisposed()
Description copied from interface:DisposableReturns true if this resource has been disposed.- Specified by:
isDisposedin interfaceDisposable- Returns:
- true if this resource has been disposed
-
cancelAll
void cancelAll()
-
errorAll
void errorAll(Observer<?> a)
-
fail
void fail(java.lang.Throwable exc, Observer<?> a, SpscLinkedArrayQueue<?> q)
-
drain
void drain()
-
innerError
public void innerError(java.lang.Throwable ex)
- Specified by:
innerErrorin interfaceObservableGroupJoin.JoinSupport
-
innerComplete
public void innerComplete(ObservableGroupJoin.LeftRightObserver sender)
- Specified by:
innerCompletein interfaceObservableGroupJoin.JoinSupport
-
innerValue
public void innerValue(boolean isLeft, java.lang.Object o)- Specified by:
innerValuein interfaceObservableGroupJoin.JoinSupport
-
innerClose
public void innerClose(boolean isLeft, ObservableGroupJoin.LeftRightEndObserver index)- Specified by:
innerClosein interfaceObservableGroupJoin.JoinSupport
-
innerCloseError
public void innerCloseError(java.lang.Throwable ex)
- Specified by:
innerCloseErrorin interfaceObservableGroupJoin.JoinSupport
-
-