Class ExecutorScheduler.DelayedRunnable
- java.lang.Object
-
- java.util.concurrent.atomic.AtomicReference<java.lang.Runnable>
-
- io.reactivex.rxjava3.internal.schedulers.ExecutorScheduler.DelayedRunnable
-
- All Implemented Interfaces:
Disposable
,SchedulerRunnableIntrospection
,java.io.Serializable
,java.lang.Runnable
- Enclosing class:
- ExecutorScheduler
static final class ExecutorScheduler.DelayedRunnable extends java.util.concurrent.atomic.AtomicReference<java.lang.Runnable> implements java.lang.Runnable, Disposable, SchedulerRunnableIntrospection
-
-
Field Summary
Fields Modifier and Type Field Description (package private) SequentialDisposable
direct
private static long
serialVersionUID
(package private) SequentialDisposable
timed
-
Constructor Summary
Constructors Constructor Description DelayedRunnable(java.lang.Runnable run)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
dispose()
Dispose the resource, the operation should be idempotent.java.lang.Runnable
getWrappedRunnable()
Returns the wrapped action.boolean
isDisposed()
Returns true if this resource has been disposed.void
run()
-
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
-
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
timed
final SequentialDisposable timed
-
direct
final SequentialDisposable direct
-
-
Method Detail
-
run
public void run()
- Specified by:
run
in interfacejava.lang.Runnable
-
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
-
getWrappedRunnable
public java.lang.Runnable getWrappedRunnable()
Description copied from interface:SchedulerRunnableIntrospection
Returns the wrapped action.- Specified by:
getWrappedRunnable
in interfaceSchedulerRunnableIntrospection
- Returns:
- the wrapped action. Cannot be null.
-
-