Package rx.internal.operators
Class OnSubscribeGroupJoin.ResultManager
- java.lang.Object
-
- rx.internal.operators.OnSubscribeGroupJoin.ResultManager
-
- All Implemented Interfaces:
Subscription
final class OnSubscribeGroupJoin.ResultManager extends java.lang.Object implements Subscription
Manages sub-observers and subscriptions.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) classOnSubscribeGroupJoin.ResultManager.LeftDurationObserverObserve left duration and apply termination.(package private) classOnSubscribeGroupJoin.ResultManager.LeftObserverObserve the left source.(package private) classOnSubscribeGroupJoin.ResultManager.RightDurationObserverObserve right duration and apply termination.(package private) classOnSubscribeGroupJoin.ResultManager.RightObserverObserve the right source.
-
Field Summary
Fields Modifier and Type Field Description (package private) RefCountSubscriptioncancel(package private) CompositeSubscriptiongroup(package private) java.lang.Objectguard(package private) booleanleftDoneGuarded by guard.(package private) intleftIdsGuarded by guard.(package private) java.util.Map<java.lang.Integer,Observer<T2>>leftMapGuarded by guard.(package private) booleanrightDoneGuarded by guard.(package private) intrightIdsGuarded by guard.(package private) java.util.Map<java.lang.Integer,T2>rightMapGuarded by guard.(package private) Subscriber<? super R>subscriber
-
Constructor Summary
Constructors Constructor Description ResultManager(Subscriber<? super R> subscriber)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) voidcomplete(java.util.List<Observer<T2>> list)(package private) voiderrorAll(java.lang.Throwable e)Notify everyone and cleanup.(package private) voiderrorMain(java.lang.Throwable e)Notify only the main subscriber and cleanup.voidinit()booleanisUnsubscribed()Indicates whether thisSubscriptionis currently unsubscribed.voidunsubscribe()Stops the receipt of notifications on theSubscriberthat was registered when this Subscription was received.
-
-
-
Field Detail
-
cancel
final RefCountSubscription cancel
-
subscriber
final Subscriber<? super R> subscriber
-
group
final CompositeSubscription group
-
guard
final java.lang.Object guard
-
leftIds
int leftIds
Guarded by guard.
-
rightIds
int rightIds
Guarded by guard.
-
rightMap
final java.util.Map<java.lang.Integer,T2> rightMap
Guarded by guard.
-
leftDone
boolean leftDone
Guarded by guard.
-
rightDone
boolean rightDone
Guarded by guard.
-
-
Constructor Detail
-
ResultManager
public ResultManager(Subscriber<? super R> subscriber)
-
-
Method Detail
-
init
public void init()
-
unsubscribe
public void unsubscribe()
Description copied from interface:SubscriptionStops the receipt of notifications on theSubscriberthat was registered when this Subscription was received.This allows unregistering an
Subscriberbefore it has finished receiving all events (i.e. before onCompleted is called).- Specified by:
unsubscribein interfaceSubscription
-
isUnsubscribed
public boolean isUnsubscribed()
Description copied from interface:SubscriptionIndicates whether thisSubscriptionis currently unsubscribed.- Specified by:
isUnsubscribedin interfaceSubscription- Returns:
trueif thisSubscriptionis currently unsubscribed,falseotherwise
-
errorAll
void errorAll(java.lang.Throwable e)
Notify everyone and cleanup.- Parameters:
e- the exception
-
errorMain
void errorMain(java.lang.Throwable e)
Notify only the main subscriber and cleanup.- Parameters:
e- the exception
-
-