Top Inners Fields Constructors Methods
io.reactivex.rxjava3.internal.operators.flowable

public final Class FlowableGroupJoin<TLeft, TRight, TLeftEnd, TRightEnd, R>

extends AbstractFlowableWithUpstream<TLeft, R>
Class Inheritance
Imports
java.util.*, java.util.concurrent.atomic.*, org.reactivestreams.*, io.reactivex.rxjava3.core.*, io.reactivex.rxjava3.disposables.*, io.reactivex.rxjava3.exceptions.*, io.reactivex.rxjava3.functions.*, io.reactivex.rxjava3.internal.subscriptions.SubscriptionHelper, io.reactivex.rxjava3.internal.util.*, io.reactivex.rxjava3.operators.SimpleQueue, .SpscLinkedArrayQueue, io.reactivex.rxjava3.plugins.RxJavaPlugins, io.reactivex.rxjava3.processors.UnicastProcessor

Nested and Inner Type Summary

Modifier and TypeClass and Description
pack-priv static class
FlowableGroupJoin.GroupJoinSubscription<TLeft, TRight, TLeftEnd, TRightEnd, R>

pack-priv static interface
pack-priv static class
pack-priv static class

Field Summary

Modifier and TypeField and Description
pack-priv final Function<? super TLeft, ? extends Publisher<TLeftEnd>>
pack-priv final Publisher<? extends TRight>
pack-priv final BiFunction<? super TLeft, ? super Flowable<TRight>, ? extends R>
pack-priv final Function<? super TRight, ? extends Publisher<TRightEnd>>
Inherited from io.reactivex.rxjava3.internal.operators.flowable.AbstractFlowableWithUpstream:
source

Constructor Summary

AccessConstructor and Description
public
FlowableGroupJoin(Flowable<TLeft> source, Publisher<? extends TRight> other, Function<? super TLeft, ? extends Publisher<TLeftEnd>> leftEnd, Function<? super TRight, ? extends Publisher<TRightEnd>> rightEnd, BiFunction<? super TLeft, ? super Flowable<TRight>, ? extends R> resultSelector)

Method Summary

Modifier and TypeMethod and Description
protected void
Inherited from io.reactivex.rxjava3.internal.operators.flowable.AbstractFlowableWithUpstream:
source

Field Detail

leftEndback to summary
pack-priv final Function<? super TLeft, ? extends Publisher<TLeftEnd>> leftEnd
otherback to summary
pack-priv final Publisher<? extends TRight> other
resultSelectorback to summary
pack-priv final BiFunction<? super TLeft, ? super Flowable<TRight>, ? extends R> resultSelector
rightEndback to summary
pack-priv final Function<? super TRight, ? extends Publisher<TRightEnd>> rightEnd

Constructor Detail

FlowableGroupJoinback to summary
public FlowableGroupJoin(Flowable<TLeft> source, Publisher<? extends TRight> other, Function<? super TLeft, ? extends Publisher<TLeftEnd>> leftEnd, Function<? super TRight, ? extends Publisher<TRightEnd>> rightEnd, BiFunction<? super TLeft, ? super Flowable<TRight>, ? extends R> resultSelector)

Method Detail

subscribeActualback to summary
protected void subscribeActual(Subscriber<? super R> s)
Annotations
@Override
io.reactivex.rxjava3.internal.operators.flowable back to summary

pack-priv final Class FlowableGroupJoin.GroupJoinSubscription<TLeft, TRight, TLeftEnd, TRightEnd, R>

extends AtomicInteger
implements Subscription, JoinSupport
Class Inheritance
All Implemented Interfaces
io.reactivex.rxjava3.internal.operators.flowable.FlowableGroupJoin.JoinSupport, org.reactivestreams.Subscription

Field Summary

Modifier and TypeField and Description
pack-priv final AtomicInteger
pack-priv volatile boolean
pack-priv final CompositeDisposable
pack-priv final Subscriber<? super R>
pack-priv final AtomicReference<Throwable>
pack-priv static final Integer
pack-priv static final Integer
pack-priv final Function<? super TLeft, ? extends Publisher<TLeftEnd>>
pack-priv int
pack-priv final Map<Integer, UnicastProcessor<TRight>>
pack-priv final SpscLinkedArrayQueue<Object>
pack-priv final AtomicLong
pack-priv final BiFunction<? super TLeft, ? super Flowable<TRight>, ? extends R>
pack-priv static final Integer
pack-priv static final Integer
pack-priv final Function<? super TRight, ? extends Publisher<TRightEnd>>
pack-priv int
pack-priv final Map<Integer, TRight>
private static final long

Constructor Summary

AccessConstructor and Description
pack-priv
GroupJoinSubscription(Subscriber<? super R> actual, Function<? super TLeft, ? extends Publisher<TLeftEnd>> leftEnd, Function<? super TRight, ? extends Publisher<TRightEnd>> rightEnd, BiFunction<? super TLeft, ? super Flowable<TRight>, ? extends R> resultSelector)

Method Summary

Modifier and TypeMethod and Description
public void
cancel()

Implements org.reactivestreams.Subscription.cancel.

Request the Publisher to stop sending data and clean up resources.
pack-priv void
pack-priv void
pack-priv void
pack-priv void
public void
public void
public void
public void
public void
public void
request(long
the strictly positive number of elements to requests to the upstream Publisher
n
)

Implements org.reactivestreams.Subscription.request.

No events will be sent by a Publisher until demand is signaled via this method.
Inherited from java.util.concurrent.atomic.AtomicInteger:
accumulateAndGetaddAndGetcompareAndExchangecompareAndExchangeAcquirecompareAndExchangeReleasecompareAndSetdecrementAndGetdoubleValuefloatValuegetgetAcquiregetAndAccumulategetAndAddgetAndDecrementgetAndIncrementgetAndSetgetAndUpdategetOpaquegetPlainincrementAndGetintValuelazySetlongValuesetsetOpaquesetPlainsetReleasetoStringupdateAndGetweakCompareAndSetweakCompareAndSetAcquireweakCompareAndSetPlainweakCompareAndSetReleaseweakCompareAndSetVolatile

Field Detail

activeback to summary
pack-priv final AtomicInteger active
cancelledback to summary
pack-priv volatile boolean cancelled
disposablesback to summary
pack-priv final CompositeDisposable disposables
downstreamback to summary
pack-priv final Subscriber<? super R> downstream
errorback to summary
pack-priv final AtomicReference<Throwable> error
LEFT_CLOSEback to summary
pack-priv static final Integer LEFT_CLOSE
LEFT_VALUEback to summary
pack-priv static final Integer LEFT_VALUE
leftEndback to summary
pack-priv final Function<? super TLeft, ? extends Publisher<TLeftEnd>> leftEnd
leftIndexback to summary
pack-priv int leftIndex
leftsback to summary
pack-priv final Map<Integer, UnicastProcessor<TRight>> lefts
queueback to summary
pack-priv final SpscLinkedArrayQueue<Object> queue
requestedback to summary
pack-priv final AtomicLong requested
resultSelectorback to summary
pack-priv final BiFunction<? super TLeft, ? super Flowable<TRight>, ? extends R> resultSelector
RIGHT_CLOSEback to summary
pack-priv static final Integer RIGHT_CLOSE
RIGHT_VALUEback to summary
pack-priv static final Integer RIGHT_VALUE
rightEndback to summary
pack-priv final Function<? super TRight, ? extends Publisher<TRightEnd>> rightEnd
rightIndexback to summary
pack-priv int rightIndex
rightsback to summary
pack-priv final Map<Integer, TRight> rights
serialVersionUIDback to summary
private static final long serialVersionUID

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

Constructor Detail

GroupJoinSubscriptionback to summary
pack-priv GroupJoinSubscription(Subscriber<? super R> actual, Function<? super TLeft, ? extends Publisher<TLeftEnd>> leftEnd, Function<? super TRight, ? extends Publisher<TRightEnd>> rightEnd, BiFunction<? super TLeft, ? super Flowable<TRight>, ? extends R> resultSelector)

Method Detail

cancelback to summary
public void cancel()

Implements org.reactivestreams.Subscription.cancel.

Doc from org.reactivestreams.Subscription.cancel.

Request the Publisher to stop sending data and clean up resources.

Data may still be sent to meet previously signalled demand after calling cancel.

Annotations
@Override
cancelAllback to summary
pack-priv void cancelAll()
drainback to summary
pack-priv void drain()
errorAllback to summary
pack-priv void errorAll(Subscriber<?> a)
failback to summary
pack-priv void fail(Throwable exc, Subscriber<?> a, SimpleQueue<?> q)
innerCloseback to summary
public void innerClose(boolean isLeft, FlowableGroupJoin.LeftRightEndSubscriber index)

Implements io.reactivex.rxjava3.internal.operators.flowable.FlowableGroupJoin.JoinSupport.innerClose.

Annotations
@Override
innerCloseErrorback to summary
public void innerCloseError(Throwable ex)

Implements io.reactivex.rxjava3.internal.operators.flowable.FlowableGroupJoin.JoinSupport.innerCloseError.

Annotations
@Override
innerCompleteback to summary
public void innerComplete(FlowableGroupJoin.LeftRightSubscriber sender)

Implements io.reactivex.rxjava3.internal.operators.flowable.FlowableGroupJoin.JoinSupport.innerComplete.

Annotations
@Override
innerErrorback to summary
public void innerError(Throwable ex)

Implements io.reactivex.rxjava3.internal.operators.flowable.FlowableGroupJoin.JoinSupport.innerError.

Annotations
@Override
innerValueback to summary
public void innerValue(boolean isLeft, Object o)

Implements io.reactivex.rxjava3.internal.operators.flowable.FlowableGroupJoin.JoinSupport.innerValue.

Annotations
@Override
requestback to summary
public void request(long n)

Implements org.reactivestreams.Subscription.request.

Doc from org.reactivestreams.Subscription.request.

No events will be sent by a Publisher until demand is signaled via this method.

It can be called however often and whenever needed—but if the outstanding cumulative demand ever becomes Long.MAX_VALUE or more, it may be treated by the Publisher as "effectively unbounded".

Whatever has been requested can be sent by the Publisher so only signal demand for what can be safely handled.

A Publisher can send less than is requested if the stream ends but then must emit either Subscriber#onError(Throwable) or Subscriber#onComplete().

Parameters
n:long

the strictly positive number of elements to requests to the upstream Publisher

Annotations
@Override
io.reactivex.rxjava3.internal.operators.flowable back to summary

pack-priv Interface FlowableGroupJoin.JoinSupport

Known Direct Implementers
io.reactivex.rxjava3.internal.operators.flowable.FlowableGroupJoin.GroupJoinSubscription, io.reactivex.rxjava3.internal.operators.flowable.FlowableJoin.JoinSubscription

Method Summary

Modifier and TypeMethod and Description
public void
public void
public void
public void
public void
innerValue(boolean isLeft, Object o)

Method Detail

innerCloseback to summary
public void innerClose(boolean isLeft, FlowableGroupJoin.LeftRightEndSubscriber index)
innerCloseErrorback to summary
public void innerCloseError(Throwable ex)
innerCompleteback to summary
public void innerComplete(FlowableGroupJoin.LeftRightSubscriber sender)
innerErrorback to summary
public void innerError(Throwable ex)
innerValueback to summary
public void innerValue(boolean isLeft, Object o)
io.reactivex.rxjava3.internal.operators.flowable back to summary

pack-priv final Class FlowableGroupJoin.LeftRightEndSubscriber

extends AtomicReference<Subscription>
implements FlowableSubscriber<Object>, Disposable
Class Inheritance
All Implemented Interfaces
io.reactivex.rxjava3.disposables.Disposable, io.reactivex.rxjava3.core.FlowableSubscriber, org.reactivestreams.Subscriber

Field Summary

Modifier and TypeField and Description
pack-priv final int
pack-priv final boolean
pack-priv final FlowableGroupJoin.JoinSupport
private static final long

Constructor Summary

AccessConstructor and Description
pack-priv
LeftRightEndSubscriber(FlowableGroupJoin.JoinSupport parent, boolean isLeft, int index)

Method Summary

Modifier and TypeMethod and Description
public void
dispose()

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

Dispose the resource, the operation should be idempotent.
public boolean
isDisposed()

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

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

Implements org.reactivestreams.Subscriber.onComplete.

Successful terminal state.
public void
onError(Throwable
the throwable signaled
t
)

Implements org.reactivestreams.Subscriber.onError.

Failed terminal state.
public void
onNext(Object
the element signaled
t
)

Implements org.reactivestreams.Subscriber.onNext.

Data notification sent by the Publisher in response to requests to Subscription#request(long).
public void
Inherited from java.util.concurrent.atomic.AtomicReference:
accumulateAndGetcompareAndExchangecompareAndExchangeAcquirecompareAndExchangeReleasecompareAndSetgetgetAcquiregetAndAccumulategetAndSetgetAndUpdategetOpaquegetPlainlazySetsetsetOpaquesetPlainsetReleasetoStringupdateAndGetweakCompareAndSetweakCompareAndSetAcquireweakCompareAndSetPlainweakCompareAndSetReleaseweakCompareAndSetVolatile

Field Detail

indexback to summary
pack-priv final int index
isLeftback to summary
pack-priv final boolean isLeft
parentback to summary
pack-priv final FlowableGroupJoin.JoinSupport parent
serialVersionUIDback to summary
private static final long serialVersionUID

Hides java.util.concurrent.atomic.AtomicReference.serialVersionUID.

Constructor Detail

LeftRightEndSubscriberback to summary
pack-priv LeftRightEndSubscriber(FlowableGroupJoin.JoinSupport parent, boolean isLeft, int index)

Method Detail

disposeback to summary
public 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
isDisposedback to summary
public 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 void onComplete()

Implements org.reactivestreams.Subscriber.onComplete.

Doc from org.reactivestreams.Subscriber.onComplete.

Successful terminal state.

No further events will be sent even if Subscription#request(long) is invoked again.

Annotations
@Override
onErrorback to summary
public void onError(Throwable t)

Implements org.reactivestreams.Subscriber.onError.

Doc from org.reactivestreams.Subscriber.onError.

Failed terminal state.

No further events will be sent even if Subscription#request(long) is invoked again.

Parameters
t:Throwable

the throwable signaled

Annotations
@Override
onNextback to summary
public void onNext(Object t)

Implements org.reactivestreams.Subscriber.onNext.

Doc from org.reactivestreams.Subscriber.onNext.

Data notification sent by the Publisher in response to requests to Subscription#request(long).

Parameters
t:Object

the element signaled

Annotations
@Override
onSubscribeback to summary
public void onSubscribe(Subscription s)

Implements org.reactivestreams.Subscriber.onSubscribe.

Doc from org.reactivestreams.Subscriber.onSubscribe.

Invoked after calling Publisher#subscribe(Subscriber).

No data will start flowing until Subscription#request(long) is invoked.

It is the responsibility of this Subscriber instance to call Subscription#request(long) whenever more data is wanted.

The Publisher will send notifications only in response to Subscription#request(long).

Parameters
s:Subscription

the Subscription that allows requesting data via Subscription#request(long)

Annotations
@Override
io.reactivex.rxjava3.internal.operators.flowable back to summary

pack-priv final Class FlowableGroupJoin.LeftRightSubscriber

extends AtomicReference<Subscription>
implements FlowableSubscriber<Object>, Disposable
Class Inheritance
All Implemented Interfaces
io.reactivex.rxjava3.disposables.Disposable, io.reactivex.rxjava3.core.FlowableSubscriber, org.reactivestreams.Subscriber

Field Summary

Modifier and TypeField and Description
pack-priv final boolean
pack-priv final FlowableGroupJoin.JoinSupport
private static final long

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public void
dispose()

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

Dispose the resource, the operation should be idempotent.
public boolean
isDisposed()

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

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

Implements org.reactivestreams.Subscriber.onComplete.

Successful terminal state.
public void
onError(Throwable
the throwable signaled
t
)

Implements org.reactivestreams.Subscriber.onError.

Failed terminal state.
public void
onNext(Object
the element signaled
t
)

Implements org.reactivestreams.Subscriber.onNext.

Data notification sent by the Publisher in response to requests to Subscription#request(long).
public void
Inherited from java.util.concurrent.atomic.AtomicReference:
accumulateAndGetcompareAndExchangecompareAndExchangeAcquirecompareAndExchangeReleasecompareAndSetgetgetAcquiregetAndAccumulategetAndSetgetAndUpdategetOpaquegetPlainlazySetsetsetOpaquesetPlainsetReleasetoStringupdateAndGetweakCompareAndSetweakCompareAndSetAcquireweakCompareAndSetPlainweakCompareAndSetReleaseweakCompareAndSetVolatile

Field Detail

isLeftback to summary
pack-priv final boolean isLeft
parentback to summary
pack-priv final FlowableGroupJoin.JoinSupport parent
serialVersionUIDback to summary
private static final long serialVersionUID

Hides java.util.concurrent.atomic.AtomicReference.serialVersionUID.

Constructor Detail

LeftRightSubscriberback to summary
pack-priv LeftRightSubscriber(FlowableGroupJoin.JoinSupport parent, boolean isLeft)

Method Detail

disposeback to summary
public 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
isDisposedback to summary
public 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 void onComplete()

Implements org.reactivestreams.Subscriber.onComplete.

Doc from org.reactivestreams.Subscriber.onComplete.

Successful terminal state.

No further events will be sent even if Subscription#request(long) is invoked again.

Annotations
@Override
onErrorback to summary
public void onError(Throwable t)

Implements org.reactivestreams.Subscriber.onError.

Doc from org.reactivestreams.Subscriber.onError.

Failed terminal state.

No further events will be sent even if Subscription#request(long) is invoked again.

Parameters
t:Throwable

the throwable signaled

Annotations
@Override
onNextback to summary
public void onNext(Object t)

Implements org.reactivestreams.Subscriber.onNext.

Doc from org.reactivestreams.Subscriber.onNext.

Data notification sent by the Publisher in response to requests to Subscription#request(long).

Parameters
t:Object

the element signaled

Annotations
@Override
onSubscribeback to summary
public void onSubscribe(Subscription s)

Implements org.reactivestreams.Subscriber.onSubscribe.

Doc from org.reactivestreams.Subscriber.onSubscribe.

Invoked after calling Publisher#subscribe(Subscriber).

No data will start flowing until Subscription#request(long) is invoked.

It is the responsibility of this Subscriber instance to call Subscription#request(long) whenever more data is wanted.

The Publisher will send notifications only in response to Subscription#request(long).

Parameters
s:Subscription

the Subscription that allows requesting data via Subscription#request(long)

Annotations
@Override