Top Description Inners Fields Constructors Methods
rx.internal.operators

public final Class OnSubscribeGroupJoin<T1, T2, D1, D2, 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
<T1>
the left value type
<T2>
the right value type
<D1>
the value type of the left duration
<D2>
the value type of the right duration
<R>
the result value type
Imports
java.util.*, rx.*, .Observable, .Observable.OnSubscribe, .Observer, rx.exceptions.Exceptions, rx.functions.*, rx.observers.*, rx.subjects.*, rx.subscriptions.*

Correlates two sequences when they overlap and groups the results.
See Also
MSDN: Observable.GroupJoin

Nested and Inner Type Summary

Modifier and TypeClass and Description
pack-priv class
OnSubscribeGroupJoin.ResultManager

Manages sub-observers and subscriptions.

pack-priv static class
OnSubscribeGroupJoin.WindowObservableFunc<T>

The reference-counted window observable.

Field Summary

Modifier and TypeField and Description
pack-priv final Observable<T1>
pack-priv final Func1<? super T1, ? extends Observable<D1>>
pack-priv final Func2<? super T1, ? super Observable<T2>, ? extends R>
pack-priv final Observable<T2>
pack-priv final Func1<? super T2, ? extends Observable<D2>>

Constructor Summary

AccessConstructor and Description
public
OnSubscribeGroupJoin(Observable<T1> left, Observable<T2> right, Func1<? super T1, ? extends Observable<D1>> leftDuration, Func1<? super T2, ? extends Observable<D2>> rightDuration, Func2<? super T1, ? super Observable<T2>, ? extends R> resultSelector)

Method Summary

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

Implements rx.functions.Action1.call.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

leftback to summary
pack-priv final Observable<T1> left
leftDurationback to summary
pack-priv final Func1<? super T1, ? extends Observable<D1>> leftDuration
resultSelectorback to summary
pack-priv final Func2<? super T1, ? super Observable<T2>, ? extends R> resultSelector
rightDurationback to summary
pack-priv final Func1<? super T2, ? extends Observable<D2>> rightDuration

Constructor Detail

OnSubscribeGroupJoinback to summary
public OnSubscribeGroupJoin(Observable<T1> left, Observable<T2> right, Func1<? super T1, ? extends Observable<D1>> leftDuration, Func1<? super T2, ? extends Observable<D2>> rightDuration, Func2<? super T1, ? super Observable<T2>, ? extends R> resultSelector)

Method Detail

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

Implements rx.functions.Action1.call.

Annotations
@Override
rx.internal.operators back to summary

pack-priv final Class OnSubscribeGroupJoin.ResultManager

extends HashMap<Integer, Observer<T2>>
implements Subscription
Class Inheritance
All Implemented Interfaces
rx.Subscription

Manages sub-observers and subscriptions.

Nested and Inner Type Summary

Modifier and TypeClass and Description
pack-priv class
OnSubscribeGroupJoin.ResultManager.LeftDurationObserver

Observe left duration and apply termination.

pack-priv class
pack-priv class
OnSubscribeGroupJoin.ResultManager.RightDurationObserver

Observe right duration and apply termination.

pack-priv class

Field Summary

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

Guarded by this.

pack-priv int
leftIds

Guarded by this.

pack-priv boolean
rightDone

Guarded by this.

pack-priv int
rightIds

Guarded by this.

pack-priv final Map<Integer, T2>
rightMap

Guarded by this.

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

Constructor Summary

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

Method Summary

Modifier and TypeMethod and Description
pack-priv void
complete(List<Observer<T2>> list)

pack-priv void
errorAll(Throwable
the exception
e
)

Notify everyone and cleanup.

pack-priv void
errorMain(Throwable
the exception
e
)

Notify only the main subscriber and cleanup.

public void
init()

public boolean
isUnsubscribed()

Implements rx.Subscription.isUnsubscribed.

Indicates whether this Subscription is currently unsubscribed.
pack-priv Map<Integer, Observer<T2>>
public void
unsubscribe()

Implements rx.Subscription.unsubscribe.

Stops the receipt of notifications on the Subscriber that was registered when this Subscription was received.
Inherited from java.util.HashMap:
clearclonecomputecomputeIfAbsentcomputeIfPresentcontainsKeycontainsValueentrySetforEachgetgetOrDefaultisEmptykeySetmergenewHashMapputputAllputIfAbsentremoveremovereplacereplacereplaceAllsizevalues

Field Detail

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

Guarded by this.

leftIdsback to summary
pack-priv int leftIds

Guarded by this.

rightDoneback to summary
pack-priv boolean rightDone

Guarded by this.

rightIdsback to summary
pack-priv int rightIds

Guarded by this.

rightMapback to summary
pack-priv final Map<Integer, T2> 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

ResultManagerback to summary
public ResultManager(Subscriber<? super R> subscriber)

Method Detail

completeback to summary
pack-priv void complete(List<Observer<T2>> list)
errorAllback to summary
pack-priv void errorAll(Throwable e)

Notify everyone and cleanup.

Parameters
e:Throwable

the exception

errorMainback to summary
pack-priv void errorMain(Throwable e)

Notify only the main subscriber and cleanup.

Parameters
e:Throwable

the exception

initback to summary
public void init()
isUnsubscribedback to summary
public boolean isUnsubscribed()

Implements rx.Subscription.isUnsubscribed.

Doc from rx.Subscription.isUnsubscribed.

Indicates whether this Subscription is currently unsubscribed.

Returns:boolean

true if this Subscription is currently unsubscribed, false otherwise

Annotations
@Override
leftMapback to summary
pack-priv Map<Integer, Observer<T2>> leftMap()
unsubscribeback to summary
public void unsubscribe()

Implements rx.Subscription.unsubscribe.

Doc from rx.Subscription.unsubscribe.

Stops the receipt of notifications on the Subscriber that was registered when this Subscription was received.

This allows deregistering an Subscriber before it has finished receiving all events (i.e. before onCompleted is called).

Annotations
@Override
rx.internal.operators back to summary

pack-priv final Class OnSubscribeGroupJoin.ResultManager.LeftDurationObserver

extends Subscriber<D1>
Class Inheritance

Observe left duration and apply termination.

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(D1
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

LeftDurationObserverback to summary
public LeftDurationObserver(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(D1 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:D1

the item emitted by the Observable

Annotations
@Override
rx.internal.operators back to summary

pack-priv final Class OnSubscribeGroupJoin.ResultManager.LeftObserver

extends Subscriber<T1>
Class Inheritance

Observe the left source.

Constructor Summary

AccessConstructor and Description
pack-priv

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(T1
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

LeftObserverback to summary
pack-priv LeftObserver()

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(T1 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:T1

the item emitted by the Observable

Annotations
@Override
rx.internal.operators back to summary

pack-priv final Class OnSubscribeGroupJoin.ResultManager.RightDurationObserver

extends Subscriber<D2>
Class Inheritance

Observe right duration and apply termination.

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(D2
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

RightDurationObserverback to summary
public RightDurationObserver(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(D2 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:D2

the item emitted by the Observable

Annotations
@Override
rx.internal.operators back to summary

pack-priv final Class OnSubscribeGroupJoin.ResultManager.RightObserver

extends Subscriber<T2>
Class Inheritance

Observe the right source.

Constructor Summary

AccessConstructor and Description
pack-priv

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(T2
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

RightObserverback to summary
pack-priv RightObserver()

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(T2 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:T2

the item emitted by the Observable

Annotations
@Override
rx.internal.operators back to summary

pack-priv final Class OnSubscribeGroupJoin.WindowObservableFunc<T>

extends Object
implements Observable.OnSubscribe<T>
Class Inheritance
  • java.lang.Object
  • rx.internal.operators.OnSubscribeGroupJoin.WindowObservableFunc
All Implemented Interfaces
rx.Observable.OnSubscribe, rx.functions.Action1, rx.functions.Action, rx.functions.Function

The reference-counted window observable. Subscribes to the underlying Observable by using a reference-counted subscription.

Nested and Inner Type Summary

Modifier and TypeClass and Description
pack-priv class

Field Summary

Modifier and TypeField and Description
pack-priv final RefCountSubscription
pack-priv final Observable<T>

Constructor Summary

AccessConstructor and Description
public

Method Summary

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

Implements rx.functions.Action1.call.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

refCountback to summary
pack-priv final RefCountSubscription refCount
underlyingback to summary
pack-priv final Observable<T> underlying

Constructor Detail

WindowObservableFuncback to summary
public WindowObservableFunc(Observable<T> underlying, RefCountSubscription refCount)

Method Detail

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

Implements rx.functions.Action1.call.

Annotations
@Override
rx.internal.operators back to summary

pack-priv final Class OnSubscribeGroupJoin.WindowObservableFunc.WindowSubscriber

extends Subscriber<T>
Class Inheritance

Observe activities on the window.

Field Summary

Modifier and TypeField and Description
private final Subscription
pack-priv final Subscriber<? super T>

Constructor Summary

AccessConstructor and Description
public
WindowSubscriber(Subscriber<? super T> subscriber, Subscription ref)

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(T
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

refback to summary
private final Subscription ref
subscriberback to summary
pack-priv final Subscriber<? super T> subscriber

Hides rx.Subscriber.subscriber.

Constructor Detail

WindowSubscriberback to summary
public WindowSubscriber(Subscriber<? super T> subscriber, Subscription ref)

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(T 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:T

the item emitted by the Observable

Annotations
@Override