Package rx.internal.schedulers
Class ScheduledAction.Remover
- java.lang.Object
-
- java.util.concurrent.atomic.AtomicBoolean
-
- rx.internal.schedulers.ScheduledAction.Remover
-
- All Implemented Interfaces:
java.io.Serializable,Subscription
- Enclosing class:
- ScheduledAction
static final class ScheduledAction.Remover 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) CompositeSubscriptionparent(package private) ScheduledActionsprivate static longserialVersionUID
-
Constructor Summary
Constructors Constructor Description Remover(ScheduledAction s, CompositeSubscription parent)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisUnsubscribed()Indicates whether thisSubscriptionis currently unsubscribed.voidunsubscribe()Stops the receipt of notifications on theSubscriberthat 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 CompositeSubscription parent
-
-
Constructor Detail
-
Remover
public Remover(ScheduledAction s, CompositeSubscription parent)
-
-
Method Detail
-
isUnsubscribed
public boolean isUnsubscribed()
Description copied from interface:SubscriptionIndicates whether thisSubscriptionis currently unsubscribed.- Specified by:
isUnsubscribedin interfaceSubscription- Returns:
trueif thisSubscriptionis currently unsubscribed,falseotherwise
-
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
-
-