Package rx.internal.schedulers
Class ScheduledAction.Remover2
- java.lang.Object
-
- java.util.concurrent.atomic.AtomicBoolean
-
- rx.internal.schedulers.ScheduledAction.Remover2
-
- All Implemented Interfaces:
java.io.Serializable
,Subscription
- Enclosing class:
- ScheduledAction
static final class ScheduledAction.Remover2 extends java.util.concurrent.atomic.AtomicBoolean implements Subscription
Remove a child subscription from a composite when unsubscribing.
-
-
Field Summary
Fields Modifier and Type Field Description (package private) SubscriptionList
parent
(package private) ScheduledAction
s
private static long
serialVersionUID
-
Constructor Summary
Constructors Constructor Description Remover2(ScheduledAction s, SubscriptionList parent)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isUnsubscribed()
Indicates whether thisSubscription
is currently unsubscribed.void
unsubscribe()
Stops the receipt of notifications on theSubscriber
that was registered when this Subscription was received.-
Methods inherited from class java.util.concurrent.atomic.AtomicBoolean
compareAndExchange, compareAndExchangeAcquire, compareAndExchangeRelease, compareAndSet, get, getAcquire, getAndSet, getOpaque, getPlain, lazySet, set, setOpaque, setPlain, setRelease, toString, weakCompareAndSet, weakCompareAndSetAcquire, weakCompareAndSetPlain, weakCompareAndSetRelease, weakCompareAndSetVolatile
-
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
s
final ScheduledAction s
-
parent
final SubscriptionList parent
-
-
Constructor Detail
-
Remover2
public Remover2(ScheduledAction s, SubscriptionList parent)
-
-
Method Detail
-
isUnsubscribed
public boolean isUnsubscribed()
Description copied from interface:Subscription
Indicates whether thisSubscription
is currently unsubscribed.- Specified by:
isUnsubscribed
in interfaceSubscription
- Returns:
true
if thisSubscription
is currently unsubscribed,false
otherwise
-
unsubscribe
public void unsubscribe()
Description copied from interface:Subscription
Stops the receipt of notifications on theSubscriber
that was registered when this Subscription was received.This allows unregistering an
Subscriber
before it has finished receiving all events (i.e. before onCompleted is called).- Specified by:
unsubscribe
in interfaceSubscription
-
-