Package rx.internal.schedulers
Class ScheduledAction.Remover
java.lang.Object
java.util.concurrent.atomic.AtomicBoolean
rx.internal.schedulers.ScheduledAction.Remover
- All Implemented Interfaces:
Serializable
,Subscription
- Enclosing class:
ScheduledAction
Remove a child subscription from a composite when unsubscribing.
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) final CompositeSubscription
(package private) final ScheduledAction
private static final long
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
Indicates whether thisSubscription
is currently unsubscribed.void
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 Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
s
-
parent
-
-
Constructor Details
-
Remover
-
-
Method Details
-
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
-