Class SingleCache.CacheDisposable<T>
java.lang.Object
java.util.concurrent.atomic.AtomicBoolean
io.reactivex.rxjava3.internal.operators.single.SingleCache.CacheDisposable<T>
- All Implemented Interfaces:
Disposable, Serializable
- Enclosing class:
SingleCache<T>
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) final SingleObserver<? super T> (package private) final SingleCache<T> private static final long -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddispose()Dispose the resource, the operation should be idempotent.booleanReturns true if this resource has been disposed.Methods inherited from class AtomicBoolean
compareAndExchange, compareAndExchangeAcquire, compareAndExchangeRelease, compareAndSet, get, getAcquire, getAndSet, getOpaque, getPlain, lazySet, set, setOpaque, setPlain, setRelease, toString, weakCompareAndSet, weakCompareAndSetAcquire, weakCompareAndSetPlain, weakCompareAndSetRelease, weakCompareAndSetVolatile
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
downstream
-
parent
-
-
Constructor Details
-
CacheDisposable
CacheDisposable(SingleObserver<? super T> actual, SingleCache<T> parent)
-
-
Method Details
-
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
-
dispose
public void dispose()Description copied from interface:DisposableDispose the resource, the operation should be idempotent.- Specified by:
disposein interfaceDisposable
-