Package rx.internal.util.atomic
Class AtomicReferenceArrayQueue<E>
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractQueue<E>
rx.internal.util.atomic.AtomicReferenceArrayQueue<E>
- All Implemented Interfaces:
Iterable<E>,Collection<E>,Queue<E>
- Direct Known Subclasses:
SpscAtomicArrayQueue
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected final intcalcElementOffset(long index) protected final intcalcElementOffset(long index, int mask) voidclear()iterator()protected final ElpElement(int offset) protected final ElpElement(AtomicReferenceArray<E> buffer, int offset) protected final ElvElement(int offset) protected final ElvElement(AtomicReferenceArray<E> buffer, int offset) protected final voidprotected final voidsoElement(AtomicReferenceArray<E> buffer, int offset, E value) protected final voidprotected final voidspElement(AtomicReferenceArray<E> buffer, int offset, E value) protected final voidsvElement(AtomicReferenceArray<E> buffer, int offset, E value) Methods inherited from class java.util.AbstractQueue
add, addAll, element, removeMethods inherited from class java.util.AbstractCollection
contains, containsAll, isEmpty, remove, removeAll, retainAll, size, toArray, toArray, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Collection
contains, containsAll, equals, hashCode, isEmpty, parallelStream, remove, removeAll, removeIf, retainAll, size, spliterator, stream, toArray, toArray, toArray
-
Field Details
-
buffer
-
mask
protected final int mask
-
-
Constructor Details
-
AtomicReferenceArrayQueue
public AtomicReferenceArrayQueue(int capacity)
-
-
Method Details
-
iterator
- Specified by:
iteratorin interfaceCollection<E>- Specified by:
iteratorin interfaceIterable<E>- Specified by:
iteratorin classAbstractCollection<E>
-
clear
public void clear()- Specified by:
clearin interfaceCollection<E>- Overrides:
clearin classAbstractQueue<E>
-
calcElementOffset
protected final int calcElementOffset(long index, int mask) -
calcElementOffset
protected final int calcElementOffset(long index) -
lvElement
-
lpElement
-
lpElement
-
spElement
-
spElement
-
soElement
-
soElement
-
svElement
-
lvElement
-