Class ExecutorScheduler.ExecutorWorker.BooleanRunnable
- java.lang.Object
-
- java.util.concurrent.atomic.AtomicBoolean
-
- io.reactivex.rxjava3.internal.schedulers.ExecutorScheduler.ExecutorWorker.BooleanRunnable
-
- All Implemented Interfaces:
Disposable,java.io.Serializable,java.lang.Runnable
- Enclosing class:
- ExecutorScheduler.ExecutorWorker
static final class ExecutorScheduler.ExecutorWorker.BooleanRunnable extends java.util.concurrent.atomic.AtomicBoolean implements java.lang.Runnable, Disposable
-
-
Field Summary
Fields Modifier and Type Field Description (package private) java.lang.Runnableactualprivate static longserialVersionUID
-
Constructor Summary
Constructors Constructor Description BooleanRunnable(java.lang.Runnable actual)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddispose()Dispose the resource, the operation should be idempotent.booleanisDisposed()Returns true if this resource has been disposed.voidrun()-
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 Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
actual
final java.lang.Runnable actual
-
-
Method Detail
-
run
public void run()
- Specified by:
runin interfacejava.lang.Runnable
-
dispose
public void dispose()
Description copied from interface:DisposableDispose the resource, the operation should be idempotent.- Specified by:
disposein interfaceDisposable
-
isDisposed
public 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
-
-