Top Description Inners Fields Constructors Methods
rx.internal.operators

public final Class OnSubscribeJoin<TLeft, TRight, TLeftDuration, TRightDuration, R>

extends Object
implements Observable.OnSubscribe<R>
Class Inheritance
All Implemented Interfaces
rx.Observable.OnSubscribe, rx.functions.Action1, rx.functions.Action, rx.functions.Function
Type Parameters
<TLeft>
the left value type
<TRight>
the right value type
<TLeftDuration>
the left duration value type
<TRightDuration>
the right duration type
<R>
the result type
Imports
java.util.*, rx.*, .Observable, .Observable.OnSubscribe, rx.exceptions.Exceptions, rx.functions.*, rx.observers.SerializedSubscriber, rx.subscriptions.*

Correlates the elements of two sequences based on overlapping durations.

Nested and Inner Type Summary

Modifier and TypeClass and Description
pack-priv class
OnSubscribeJoin.ResultSink

Manage the left and right sources.

Field Summary

Modifier and TypeField and Description
pack-priv final Observable<TLeft>
pack-priv final Func1<TLeft, Observable<TLeftDuration>>
pack-priv final Func2<TLeft, TRight, R>
pack-priv final Observable<TRight>
pack-priv final Func1<TRight, Observable<TRightDuration>>

Constructor Summary

AccessConstructor and Description
public
OnSubscribeJoin(Observable<TLeft> left, Observable<TRight> right, Func1<TLeft, Observable<TLeftDuration>> leftDurationSelector, Func1<TRight, Observable<TRightDuration>> rightDurationSelector, Func2<TLeft, TRight, R> resultSelector)

Method Summary

Modifier and TypeMethod and Description
public void
call(Subscriber<? super R> t1)

Implements rx.functions.Action1.call.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

leftback to summary
pack-priv final Observable<TLeft> left
leftDurationSelectorback to summary
pack-priv final Func1<TLeft, Observable<TLeftDuration>> leftDurationSelector
resultSelectorback to summary
pack-priv final Func2<TLeft, TRight, R> resultSelector
rightDurationSelectorback to summary
pack-priv final Func1<TRight, Observable<TRightDuration>> rightDurationSelector

Constructor Detail

OnSubscribeJoinback to summary
public OnSubscribeJoin(Observable<TLeft> left, Observable<TRight> right, Func1<TLeft, Observable<TLeftDuration>> leftDurationSelector, Func1<TRight, Observable<TRightDuration>> rightDurationSelector, Func2<TLeft, TRight, R> resultSelector)

Method Detail

callback to summary
public void call(Subscriber<? super R> t1)

Implements rx.functions.Action1.call.

Annotations
@Override
rx.internal.operators back to summary

pack-priv final Class OnSubscribeJoin.ResultSink

extends HashMap<Integer, TLeft>
Class Inheritance

Manage the left and right sources.

Nested and Inner Type Summary

Modifier and TypeClass and Description
pack-priv class
pack-priv class

Field Summary

Modifier and TypeField and Description
pack-priv final CompositeSubscription
pack-priv boolean
leftDone

Guarded by this.

pack-priv int
leftId

Guarded by this.

pack-priv boolean
rightDone

Guarded by this.

pack-priv int
rightId

Guarded by this.

pack-priv final Map<Integer, TRight>
rightMap

Guarded by this.

private static final long
pack-priv final Subscriber<? super R>

Constructor Summary

AccessConstructor and Description
public
ResultSink(Subscriber<? super R> subscriber)

Method Summary

Modifier and TypeMethod and Description
pack-priv HashMap<Integer, TLeft>
public void
run()

Inherited from java.util.HashMap:
clearclonecomputecomputeIfAbsentcomputeIfPresentcontainsKeycontainsValueentrySetforEachgetgetOrDefaultisEmptykeySetmergenewHashMapputputAllputIfAbsentremoveremovereplacereplacereplaceAllsizevalues

Field Detail

groupback to summary
pack-priv final CompositeSubscription group
leftDoneback to summary
pack-priv boolean leftDone

Guarded by this.

leftIdback to summary
pack-priv int leftId

Guarded by this.

rightDoneback to summary
pack-priv boolean rightDone

Guarded by this.

rightIdback to summary
pack-priv int rightId

Guarded by this.

rightMapback to summary
pack-priv final Map<Integer, TRight> rightMap

Guarded by this.

serialVersionUIDback to summary
private static final long serialVersionUID

Hides java.util.HashMap.serialVersionUID.

subscriberback to summary
pack-priv final Subscriber<? super R> subscriber

Constructor Detail

ResultSinkback to summary
public ResultSink(Subscriber<? super R> subscriber)

Method Detail

leftMapback to summary
pack-priv HashMap<Integer, TLeft> leftMap()
runback to summary
public void run()
rx.internal.operators back to summary

pack-priv final Class OnSubscribeJoin.ResultSink.LeftSubscriber

extends Subscriber<TLeft>
Class Inheritance

Observes the left values.

Nested and Inner Type Summary

Modifier and TypeClass and Description
pack-priv class

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
protected void
expire(int id, Subscription resource)

public void
onCompleted()

Implements rx.Observer.onCompleted.

Notifies the Observer that the Observable has finished sending push-based notifications.
public void
onError(Throwable
the exception encountered by the Observable
e
)

Implements rx.Observer.onError.

Notifies the Observer that the Observable has experienced an error condition.
public void
onNext(TLeft
the item emitted by the Observable
args
)

Implements rx.Observer.onNext.

Provides the Observer with a new item to observe.
Inherited from rx.Subscriber:
addisUnsubscribedonStartrequestsetProducerunsubscribe

Constructor Detail

LeftSubscriberback to summary
pack-priv LeftSubscriber()

Method Detail

expireback to summary
protected void expire(int id, Subscription resource)
onCompletedback to summary
public void onCompleted()

Implements rx.Observer.onCompleted.

Doc from rx.Observer.onCompleted.

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 void onError(Throwable e)

Implements rx.Observer.onError.

Doc from rx.Observer.onError.

Notifies the Observer that the Observable has experienced an error condition.

If the Observable calls this method, it will not thereafter call onNext or onCompleted.

Parameters
e:Throwable

the exception encountered by the Observable

Annotations
@Override
onNextback to summary
public void onNext(TLeft args)

Implements rx.Observer.onNext.

Doc from rx.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 onCompleted or onError.

Parameters
args:TLeft

the item emitted by the Observable

Annotations
@Override
rx.internal.operators back to summary

pack-priv final Class OnSubscribeJoin.ResultSink.LeftSubscriber.LeftDurationSubscriber

extends Subscriber<TLeftDuration>
Class Inheritance

Observes the left duration.

Field Summary

Modifier and TypeField and Description
pack-priv final int
pack-priv boolean

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
onCompleted()

Implements rx.Observer.onCompleted.

Notifies the Observer that the Observable has finished sending push-based notifications.
public void
onError(Throwable
the exception encountered by the Observable
e
)

Implements rx.Observer.onError.

Notifies the Observer that the Observable has experienced an error condition.
public void
onNext(TLeftDuration
the item emitted by the Observable
args
)

Implements rx.Observer.onNext.

Provides the Observer with a new item to observe.
Inherited from rx.Subscriber:
addisUnsubscribedonStartrequestsetProducerunsubscribe

Field Detail

idback to summary
pack-priv final int id
onceback to summary
pack-priv boolean once

Constructor Detail

LeftDurationSubscriberback to summary
public LeftDurationSubscriber(int id)

Method Detail

onCompletedback to summary
public void onCompleted()

Implements rx.Observer.onCompleted.

Doc from rx.Observer.onCompleted.

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 void onError(Throwable e)

Implements rx.Observer.onError.

Doc from rx.Observer.onError.

Notifies the Observer that the Observable has experienced an error condition.

If the Observable calls this method, it will not thereafter call onNext or onCompleted.

Parameters
e:Throwable

the exception encountered by the Observable

Annotations
@Override
onNextback to summary
public void onNext(TLeftDuration args)

Implements rx.Observer.onNext.

Doc from rx.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 onCompleted or onError.

Parameters
args:TLeftDuration

the item emitted by the Observable

Annotations
@Override
rx.internal.operators back to summary

pack-priv final Class OnSubscribeJoin.ResultSink.RightSubscriber

extends Subscriber<TRight>
Class Inheritance

Observes the right values.

Nested and Inner Type Summary

Modifier and TypeClass and Description
pack-priv class

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
pack-priv void
expire(int id, Subscription resource)

public void
onCompleted()

Implements rx.Observer.onCompleted.

Notifies the Observer that the Observable has finished sending push-based notifications.
public void
onError(Throwable
the exception encountered by the Observable
e
)

Implements rx.Observer.onError.

Notifies the Observer that the Observable has experienced an error condition.
public void
onNext(TRight
the item emitted by the Observable
args
)

Implements rx.Observer.onNext.

Provides the Observer with a new item to observe.
Inherited from rx.Subscriber:
addisUnsubscribedonStartrequestsetProducerunsubscribe

Constructor Detail

RightSubscriberback to summary
pack-priv RightSubscriber()

Method Detail

expireback to summary
pack-priv void expire(int id, Subscription resource)
onCompletedback to summary
public void onCompleted()

Implements rx.Observer.onCompleted.

Doc from rx.Observer.onCompleted.

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 void onError(Throwable e)

Implements rx.Observer.onError.

Doc from rx.Observer.onError.

Notifies the Observer that the Observable has experienced an error condition.

If the Observable calls this method, it will not thereafter call onNext or onCompleted.

Parameters
e:Throwable

the exception encountered by the Observable

Annotations
@Override
onNextback to summary
public void onNext(TRight args)

Implements rx.Observer.onNext.

Doc from rx.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 onCompleted or onError.

Parameters
args:TRight

the item emitted by the Observable

Annotations
@Override
rx.internal.operators back to summary

pack-priv final Class OnSubscribeJoin.ResultSink.RightSubscriber.RightDurationSubscriber

extends Subscriber<TRightDuration>
Class Inheritance

Observe the right duration.

Field Summary

Modifier and TypeField and Description
pack-priv final int
pack-priv boolean

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
onCompleted()

Implements rx.Observer.onCompleted.

Notifies the Observer that the Observable has finished sending push-based notifications.
public void
onError(Throwable
the exception encountered by the Observable
e
)

Implements rx.Observer.onError.

Notifies the Observer that the Observable has experienced an error condition.
public void
onNext(TRightDuration
the item emitted by the Observable
args
)

Implements rx.Observer.onNext.

Provides the Observer with a new item to observe.
Inherited from rx.Subscriber:
addisUnsubscribedonStartrequestsetProducerunsubscribe

Field Detail

idback to summary
pack-priv final int id
onceback to summary
pack-priv boolean once

Constructor Detail

RightDurationSubscriberback to summary
public RightDurationSubscriber(int id)

Method Detail

onCompletedback to summary
public void onCompleted()

Implements rx.Observer.onCompleted.

Doc from rx.Observer.onCompleted.

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 void onError(Throwable e)

Implements rx.Observer.onError.

Doc from rx.Observer.onError.

Notifies the Observer that the Observable has experienced an error condition.

If the Observable calls this method, it will not thereafter call onNext or onCompleted.

Parameters
e:Throwable

the exception encountered by the Observable

Annotations
@Override
onNextback to summary
public void onNext(TRightDuration args)

Implements rx.Observer.onNext.

Doc from rx.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 onCompleted or onError.

Parameters
args:TRightDuration

the item emitted by the Observable

Annotations
@Override