Class FlowableGroupJoin.GroupJoinSubscription<TLeft,TRight,TLeftEnd,TRightEnd,R>
- java.lang.Object
-
- java.lang.Number
-
- java.util.concurrent.atomic.AtomicInteger
-
- io.reactivex.rxjava3.internal.operators.flowable.FlowableGroupJoin.GroupJoinSubscription<TLeft,TRight,TLeftEnd,TRightEnd,R>
-
- All Implemented Interfaces:
FlowableGroupJoin.JoinSupport,java.io.Serializable,org.reactivestreams.Subscription
static final class FlowableGroupJoin.GroupJoinSubscription<TLeft,TRight,TLeftEnd,TRightEnd,R> extends java.util.concurrent.atomic.AtomicInteger implements org.reactivestreams.Subscription, FlowableGroupJoin.JoinSupport
-
-
Field Summary
Fields Modifier and Type Field Description (package private) java.util.concurrent.atomic.AtomicIntegeractive(package private) booleancancelled(package private) CompositeDisposabledisposables(package private) org.reactivestreams.Subscriber<? 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 org.reactivestreams.Publisher<TLeftEnd>>leftEnd(package private) intleftIndex(package private) java.util.Map<java.lang.Integer,UnicastProcessor<TRight>>lefts(package private) SpscLinkedArrayQueue<java.lang.Object>queue(package private) java.util.concurrent.atomic.AtomicLongrequested(package private) BiFunction<? super TLeft,? super Flowable<TRight>,? extends R>resultSelector(package private) static java.lang.IntegerRIGHT_CLOSE(package private) static java.lang.IntegerRIGHT_VALUE(package private) Function<? super TRight,? extends org.reactivestreams.Publisher<TRightEnd>>rightEnd(package private) intrightIndex(package private) java.util.Map<java.lang.Integer,TRight>rightsprivate static longserialVersionUID
-
Constructor Summary
Constructors Constructor Description GroupJoinSubscription(org.reactivestreams.Subscriber<? super R> actual, Function<? super TLeft,? extends org.reactivestreams.Publisher<TLeftEnd>> leftEnd, Function<? super TRight,? extends org.reactivestreams.Publisher<TRightEnd>> rightEnd, BiFunction<? super TLeft,? super Flowable<TRight>,? extends R> resultSelector)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcancel()(package private) voidcancelAll()(package private) voiddrain()(package private) voiderrorAll(org.reactivestreams.Subscriber<?> a)(package private) voidfail(java.lang.Throwable exc, org.reactivestreams.Subscriber<?> a, SimpleQueue<?> q)voidinnerClose(boolean isLeft, FlowableGroupJoin.LeftRightEndSubscriber index)voidinnerCloseError(java.lang.Throwable ex)voidinnerComplete(FlowableGroupJoin.LeftRightSubscriber sender)voidinnerError(java.lang.Throwable ex)voidinnerValue(boolean isLeft, java.lang.Object o)voidrequest(long n)-
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 org.reactivestreams.Subscriber<? super R> downstream
-
requested
final java.util.concurrent.atomic.AtomicLong requested
-
queue
final SpscLinkedArrayQueue<java.lang.Object> queue
-
disposables
final CompositeDisposable disposables
-
lefts
final java.util.Map<java.lang.Integer,UnicastProcessor<TRight>> lefts
-
rights
final java.util.Map<java.lang.Integer,TRight> rights
-
error
final java.util.concurrent.atomic.AtomicReference<java.lang.Throwable> error
-
rightEnd
final Function<? super TRight,? extends org.reactivestreams.Publisher<TRightEnd>> rightEnd
-
resultSelector
final BiFunction<? super TLeft,? super Flowable<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
-
GroupJoinSubscription
GroupJoinSubscription(org.reactivestreams.Subscriber<? super R> actual, Function<? super TLeft,? extends org.reactivestreams.Publisher<TLeftEnd>> leftEnd, Function<? super TRight,? extends org.reactivestreams.Publisher<TRightEnd>> rightEnd, BiFunction<? super TLeft,? super Flowable<TRight>,? extends R> resultSelector)
-
-
Method Detail
-
request
public void request(long n)
- Specified by:
requestin interfaceorg.reactivestreams.Subscription
-
cancel
public void cancel()
- Specified by:
cancelin interfaceorg.reactivestreams.Subscription
-
cancelAll
void cancelAll()
-
errorAll
void errorAll(org.reactivestreams.Subscriber<?> a)
-
fail
void fail(java.lang.Throwable exc, org.reactivestreams.Subscriber<?> a, SimpleQueue<?> q)
-
drain
void drain()
-
innerError
public void innerError(java.lang.Throwable ex)
- Specified by:
innerErrorin interfaceFlowableGroupJoin.JoinSupport
-
innerComplete
public void innerComplete(FlowableGroupJoin.LeftRightSubscriber sender)
- Specified by:
innerCompletein interfaceFlowableGroupJoin.JoinSupport
-
innerValue
public void innerValue(boolean isLeft, java.lang.Object o)- Specified by:
innerValuein interfaceFlowableGroupJoin.JoinSupport
-
innerClose
public void innerClose(boolean isLeft, FlowableGroupJoin.LeftRightEndSubscriber index)- Specified by:
innerClosein interfaceFlowableGroupJoin.JoinSupport
-
innerCloseError
public void innerCloseError(java.lang.Throwable ex)
- Specified by:
innerCloseErrorin interfaceFlowableGroupJoin.JoinSupport
-
-