Class MpscLinkedQueue.LinkedQueueNode<E>
- java.lang.Object
-
- java.util.concurrent.atomic.AtomicReference<MpscLinkedQueue.LinkedQueueNode<E>>
-
- io.reactivex.rxjava3.internal.queue.MpscLinkedQueue.LinkedQueueNode<E>
-
- All Implemented Interfaces:
java.io.Serializable
- Enclosing class:
- MpscLinkedQueue<T>
static final class MpscLinkedQueue.LinkedQueueNode<E> extends java.util.concurrent.atomic.AtomicReference<MpscLinkedQueue.LinkedQueueNode<E>>
-
-
Field Summary
Fields Modifier and Type Field Description private static long
serialVersionUID
private E
value
-
Constructor Summary
Constructors Constructor Description LinkedQueueNode()
LinkedQueueNode(E val)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description E
getAndNullValue()
Gets the current value and nulls out the reference to it from this node.E
lpValue()
MpscLinkedQueue.LinkedQueueNode<E>
lvNext()
void
soNext(MpscLinkedQueue.LinkedQueueNode<E> n)
void
spValue(E newValue)
-
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
-
value
private E value
-
-
Constructor Detail
-
LinkedQueueNode
LinkedQueueNode()
-
LinkedQueueNode
LinkedQueueNode(E val)
-
-
Method Detail
-
getAndNullValue
public E getAndNullValue()
Gets the current value and nulls out the reference to it from this node.- Returns:
- value
-
lpValue
public E lpValue()
-
spValue
public void spValue(E newValue)
-
soNext
public void soNext(MpscLinkedQueue.LinkedQueueNode<E> n)
-
lvNext
public MpscLinkedQueue.LinkedQueueNode<E> lvNext()
-
-