Class SchedulerWhen.ScheduledAction
java.lang.Object
java.util.concurrent.atomic.AtomicReference<Disposable>
io.reactivex.rxjava3.internal.schedulers.SchedulerWhen.ScheduledAction
- All Implemented Interfaces:
Disposable
,Serializable
- Direct Known Subclasses:
SchedulerWhen.DelayedAction
,SchedulerWhen.ImmediateAction
- Enclosing class:
SchedulerWhen
abstract static class SchedulerWhen.ScheduledAction
extends AtomicReference<Disposable>
implements Disposable
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) void
call
(Scheduler.Worker actualWorker, CompletableObserver actionCompletable) protected abstract Disposable
callActual
(Scheduler.Worker actualWorker, CompletableObserver actionCompletable) void
dispose()
Dispose the resource, the operation should be idempotent.boolean
Returns true if this resource has been disposed.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
ScheduledAction()
-
-
Method Details
-
call
-
callActual
protected abstract Disposable callActual(Scheduler.Worker actualWorker, CompletableObserver actionCompletable) -
isDisposed
public boolean isDisposed()Description copied from interface:Disposable
Returns true if this resource has been disposed.- Specified by:
isDisposed
in interfaceDisposable
- Returns:
- true if this resource has been disposed
-
dispose
public void dispose()Description copied from interface:Disposable
Dispose the resource, the operation should be idempotent.- Specified by:
dispose
in interfaceDisposable
-