Class ScheduledDirectTask
java.lang.Object
java.util.concurrent.atomic.AtomicReference<Future<?>>
io.reactivex.rxjava3.internal.schedulers.ScheduledDirectTask
- All Implemented Interfaces:
Disposable, SchedulerRunnableIntrospection, Serializable, Callable<Void>
A Callable to be submitted to an ExecutorService that runs a Runnable
action and manages completion/cancellation.
- Since:
- 2.0.8
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final FutureTask<Void> protected static final FutureTask<Void> protected final booleanprotected final Runnableprotected Thread -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class AtomicReference
accumulateAndGet, compareAndExchange, compareAndExchangeAcquire, compareAndExchangeRelease, compareAndSet, get, getAcquire, getAndAccumulate, getAndSet, getAndUpdate, getOpaque, getPlain, lazySet, set, setOpaque, setPlain, setRelease, updateAndGet, weakCompareAndSet, weakCompareAndSetAcquire, weakCompareAndSetPlain, weakCompareAndSetRelease, weakCompareAndSetVolatile
-
Field Details
-
runnable
-
interruptOnCancel
protected final boolean interruptOnCancel -
runner
-
FINISHED
-
DISPOSED
-
-
Constructor Details
-
ScheduledDirectTask
-
-
Method Details
-
call
-
dispose
public final void dispose()Description copied from interface:DisposableDispose the resource, the operation should be idempotent.- Specified by:
disposein interfaceDisposable
-
isDisposed
public final boolean isDisposed()Description copied from interface:DisposableReturns true if this resource has been disposed.- Specified by:
isDisposedin interfaceDisposable- Returns:
- true if this resource has been disposed
-
setFuture
-
getWrappedRunnable
Description copied from interface:SchedulerRunnableIntrospectionReturns the wrapped action.- Specified by:
getWrappedRunnablein interfaceSchedulerRunnableIntrospection- Returns:
- the wrapped action. Cannot be null.
-
toString
- Overrides:
toStringin classAtomicReference<Future<?>>
-