Package rx.internal.schedulers
Class SchedulerWhen.ScheduledAction
java.lang.Object
java.util.concurrent.atomic.AtomicReference<Subscription>
rx.internal.schedulers.SchedulerWhen.ScheduledAction
- All Implemented Interfaces:
Serializable,Subscription
- Direct Known Subclasses:
SchedulerWhen.DelayedAction,SchedulerWhen.ImmediateAction
- Enclosing class:
SchedulerWhen
private abstract static class SchedulerWhen.ScheduledAction
extends AtomicReference<Subscription>
implements Subscription
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate final voidcall(Scheduler.Worker actualWorker) protected abstract SubscriptioncallActual(Scheduler.Worker actualWorker) booleanIndicates whether thisSubscriptionis currently unsubscribed.voidStops the receipt of notifications on theSubscriberthat was registered when this Subscription was received.Methods inherited from class java.util.concurrent.atomic.AtomicReference
accumulateAndGet, compareAndExchange, compareAndExchangeAcquire, compareAndExchangeRelease, compareAndSet, get, getAcquire, getAndAccumulate, getAndSet, getAndUpdate, getOpaque, getPlain, lazySet, set, setOpaque, setPlain, setRelease, toString, updateAndGet, weakCompareAndSet, weakCompareAndSetAcquire, weakCompareAndSetPlain, weakCompareAndSetRelease, weakCompareAndSetVolatile
-
Constructor Details
-
ScheduledAction
public ScheduledAction()
-
-
Method Details
-
call
-
callActual
-
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
-