Package io.reactivex.rxjava3.subjects
Class ReplaySubject.ReplayDisposable<T>
- java.lang.Object
-
- java.lang.Number
-
- java.util.concurrent.atomic.AtomicInteger
-
- io.reactivex.rxjava3.subjects.ReplaySubject.ReplayDisposable<T>
-
- All Implemented Interfaces:
Disposable
,java.io.Serializable
- Enclosing class:
- ReplaySubject<T>
static final class ReplaySubject.ReplayDisposable<T> extends java.util.concurrent.atomic.AtomicInteger implements Disposable
-
-
Field Summary
Fields Modifier and Type Field Description (package private) boolean
cancelled
(package private) Observer<? super T>
downstream
(package private) java.lang.Object
index
private static long
serialVersionUID
(package private) ReplaySubject<T>
state
-
Constructor Summary
Constructors Constructor Description ReplayDisposable(Observer<? super T> actual, ReplaySubject<T> state)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
dispose()
Dispose the resource, the operation should be idempotent.boolean
isDisposed()
Returns true if this resource has been disposed.-
Methods inherited from class java.util.concurrent.atomic.AtomicInteger
accumulateAndGet, addAndGet, compareAndExchange, compareAndExchangeAcquire, compareAndExchangeRelease, compareAndSet, decrementAndGet, doubleValue, floatValue, get, getAcquire, getAndAccumulate, getAndAdd, getAndDecrement, getAndIncrement, getAndSet, getAndUpdate, getOpaque, getPlain, incrementAndGet, intValue, lazySet, longValue, set, setOpaque, setPlain, setRelease, toString, updateAndGet, weakCompareAndSet, weakCompareAndSetAcquire, weakCompareAndSetPlain, weakCompareAndSetRelease, weakCompareAndSetVolatile
-
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
state
final ReplaySubject<T> state
-
index
java.lang.Object index
-
cancelled
volatile boolean cancelled
-
-
Constructor Detail
-
ReplayDisposable
ReplayDisposable(Observer<? super T> actual, ReplaySubject<T> state)
-
-
Method Detail
-
dispose
public void dispose()
Description copied from interface:Disposable
Dispose the resource, the operation should be idempotent.- Specified by:
dispose
in interfaceDisposable
-
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
-
-