Class MpmcConcurrentQueueStateMarkers<E>
java.lang.Object
org.jctools.queues.MpmcConcurrentQueueStateMarkers<E>
- All Implemented Interfaces:
Iterable<E>, Collection<E>, Queue<E>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final E[]protected final intprotected final longprotected static final int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanaddAll(Collection<? extends E> c) protected final longcalcOffset(long index) protected final booleancasHead(long expect, long newValue) protected final booleancasTail(long expect, long newValue) voidclear()booleanbooleancontainsAll(Collection<?> c) element()booleanisEmpty()iterator()protected final Objectprotected final longlvHead()protected final longlvTail()booleanpeek()poll()remove()booleanbooleanremoveAll(Collection<?> c) booleanretainAll(Collection<?> c) intsize()protected final voidprotected final voidprotected final voidObject[]toArray()<T> T[]toArray(T[] a) Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Collection
equals, hashCode, parallelStream, removeIf, spliterator, stream, toArray
-
Field Details
-
SIZE_OF_ELEMENT
protected static final int SIZE_OF_ELEMENT -
capacity
protected final int capacity -
mask
protected final long mask -
buffer
-
-
Constructor Details
-
MpmcConcurrentQueueStateMarkers
public MpmcConcurrentQueueStateMarkers(int capacity)
-
-
Method Details
-
add
-
offer
-
poll
-
remove
-
element
-
peek
-
size
public int size()- Specified by:
sizein interfaceCollection<E>
-
isEmpty
public boolean isEmpty()- Specified by:
isEmptyin interfaceCollection<E>
-
contains
- Specified by:
containsin interfaceCollection<E>
-
iterator
-
toArray
- Specified by:
toArrayin interfaceCollection<E>
-
toArray
public <T> T[] toArray(T[] a) - Specified by:
toArrayin interfaceCollection<E>
-
remove
- Specified by:
removein interfaceCollection<E>
-
containsAll
- Specified by:
containsAllin interfaceCollection<E>
-
addAll
- Specified by:
addAllin interfaceCollection<E>
-
removeAll
- Specified by:
removeAllin interfaceCollection<E>
-
retainAll
- Specified by:
retainAllin interfaceCollection<E>
-
clear
public void clear()- Specified by:
clearin interfaceCollection<E>
-
lvHead
protected final long lvHead() -
casHead
protected final boolean casHead(long expect, long newValue) -
lvTail
protected final long lvTail() -
casTail
protected final boolean casTail(long expect, long newValue) -
calcOffset
protected final long calcOffset(long index) -
spElement
-
soElement
-
svElement
-
lvElement
-