Package io.reactivex.rxjava3.disposables
Class RunnableDisposable
- java.lang.Object
-
- java.util.concurrent.atomic.AtomicReference<T>
-
- io.reactivex.rxjava3.disposables.ReferenceDisposable<java.lang.Runnable>
-
- io.reactivex.rxjava3.disposables.RunnableDisposable
-
- All Implemented Interfaces:
Disposable
,java.io.Serializable
final class RunnableDisposable extends ReferenceDisposable<java.lang.Runnable>
A disposable container that manages aRunnable
instance.
-
-
Field Summary
Fields Modifier and Type Field Description private static long
serialVersionUID
-
Constructor Summary
Constructors Constructor Description RunnableDisposable(java.lang.Runnable value)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
onDisposed(@NonNull java.lang.Runnable value)
java.lang.String
toString()
-
Methods inherited from class io.reactivex.rxjava3.disposables.ReferenceDisposable
dispose, isDisposed
-
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, updateAndGet, weakCompareAndSet, weakCompareAndSetAcquire, weakCompareAndSetPlain, weakCompareAndSetRelease, weakCompareAndSetVolatile
-
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
-
Method Detail
-
onDisposed
protected void onDisposed(@NonNull @NonNull java.lang.Runnable value)
- Specified by:
onDisposed
in classReferenceDisposable<java.lang.Runnable>
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.util.concurrent.atomic.AtomicReference<java.lang.Runnable>
-
-