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

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

extends AbstractFlowableWithUpstream<TLeft, R>
Class Inheritance
Imports
java.util.*, java.util.concurrent.atomic.*, org.reactivestreams.*, io.reactivex.Flowable, io.reactivex.disposables.CompositeDisposable, io.reactivex.exceptions.*, io.reactivex.functions.*, io.reactivex.internal.functions.ObjectHelper, io.reactivex.internal.fuseable.SimpleQueue, io.reactivex.internal.operators.flowable.FlowableGroupJoin.*, io.reactivex.internal.queue.SpscLinkedArrayQueue, io.reactivex.internal.subscriptions.SubscriptionHelper, io.reactivex.internal.util.*, io.reactivex.plugins.RxJavaPlugins

Nested and Inner Type Summary

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

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 TRight, ? extends R>
pack-priv final Function<? super TRight, ? extends Publisher<TRightEnd>>
Inherited from io.reactivex.internal.operators.flowable.AbstractFlowableWithUpstream:
source

Constructor Summary

AccessConstructor and Description
public
FlowableJoin(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 TRight, ? extends R> resultSelector)

Method Summary

Modifier and TypeMethod and Description
protected void
subscribeActual(Subscriber<? super R>
the incoming Subscriber, never null
s
)

Implements abstract io.reactivex.Flowable.subscribeActual.

Operator implementations (both source and intermediate) should implement this method that performs the necessary business logic and handles the incoming Subscribers.
Inherited from io.reactivex.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 TRight, ? extends R> resultSelector
rightEndback to summary
pack-priv final Function<? super TRight, ? extends Publisher<TRightEnd>> rightEnd

Constructor Detail

FlowableJoinback to summary
public FlowableJoin(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 TRight, ? extends R> resultSelector)

Method Detail

subscribeActualback to summary
protected void subscribeActual(Subscriber<? super R> s)

Implements abstract io.reactivex.Flowable.subscribeActual.

Doc from io.reactivex.Flowable.subscribeActual.

Operator implementations (both source and intermediate) should implement this method that performs the necessary business logic and handles the incoming Subscribers.

There is no need to call any of the plugin hooks on the current Flowable instance or the Subscriber; all hooks and basic safeguards have been applied by subscribe(Subscriber) before this method gets called.

Parameters
s:Subscriber<? super R>

the incoming Subscriber, never null

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

pack-priv final Class FlowableJoin.JoinSubscription<TLeft, TRight, TLeftEnd, TRightEnd, R>

extends AtomicInteger
implements Subscription, JoinSupport
Class Inheritance
All Implemented Interfaces
io.reactivex.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, TLeft>
pack-priv final SpscLinkedArrayQueue<Object>
pack-priv final AtomicLong
pack-priv final BiFunction<? super TLeft, ? super 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
JoinSubscription(Subscriber<? super R> actual, Function<? super TLeft, ? extends Publisher<TLeftEnd>> leftEnd, Function<? super TRight, ? extends Publisher<TRightEnd>> rightEnd, BiFunction<? super TLeft, ? super 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, TLeft> 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 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

JoinSubscriptionback to summary
pack-priv JoinSubscription(Subscriber<? super R> actual, Function<? super TLeft, ? extends Publisher<TLeftEnd>> leftEnd, Function<? super TRight, ? extends Publisher<TRightEnd>> rightEnd, BiFunction<? super TLeft, ? super 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.internal.operators.flowable.FlowableGroupJoin.JoinSupport.innerClose.

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

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

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

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

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

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

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

Implements io.reactivex.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