Class ObservableReplay.SizeBoundReplayBuffer<T>
- java.lang.Object
-
- java.util.concurrent.atomic.AtomicReference<ObservableReplay.Node>
-
- io.reactivex.rxjava3.internal.operators.observable.ObservableReplay.BoundedReplayBuffer<T>
-
- io.reactivex.rxjava3.internal.operators.observable.ObservableReplay.SizeBoundReplayBuffer<T>
-
- Type Parameters:
T
- the value type
- All Implemented Interfaces:
ObservableReplay.ReplayBuffer<T>
,java.io.Serializable
- Enclosing class:
- ObservableReplay<T>
static final class ObservableReplay.SizeBoundReplayBuffer<T> extends ObservableReplay.BoundedReplayBuffer<T>
A bounded replay buffer implementation with size limit only.
-
-
Field Summary
Fields Modifier and Type Field Description (package private) int
limit
private static long
serialVersionUID
-
Fields inherited from class io.reactivex.rxjava3.internal.operators.observable.ObservableReplay.BoundedReplayBuffer
eagerTruncate, size, tail
-
-
Constructor Summary
Constructors Constructor Description SizeBoundReplayBuffer(int limit, boolean eagerTruncate)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) void
truncate()
Override this method to truncate a non-terminated buffer based on its current properties.-
Methods inherited from class io.reactivex.rxjava3.internal.operators.observable.ObservableReplay.BoundedReplayBuffer
addLast, collect, complete, enterTransform, error, getHead, hasCompleted, hasError, leaveTransform, next, removeFirst, removeSome, replay, setFirst, trimHead, truncateFinal
-
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
-
limit
final int limit
-
-
Method Detail
-
truncate
void truncate()
Description copied from class:ObservableReplay.BoundedReplayBuffer
Override this method to truncate a non-terminated buffer based on its current properties.- Specified by:
truncate
in classObservableReplay.BoundedReplayBuffer<T>
-
-