public final class FloatingCountersSpscConcurrentArrayQueue<E> extends FloatingCaqColdFields<E> implements java.util.Queue<E>
| Modifier and Type | Field and Description |
|---|---|
private static long |
ARRAY_BASE |
private static int |
ELEMENT_SHIFT |
protected long |
p00 |
protected long |
p01 |
protected long |
p02 |
protected long |
p03 |
protected long |
p04 |
protected long |
p05 |
protected long |
p06 |
protected long |
p07 |
protected long |
p50 |
protected long |
p51 |
protected long |
p52 |
protected long |
p53 |
protected long |
p54 |
protected long |
p55 |
protected long |
p56 |
buffer, BUFFER_PAD, capacity, head, headCache, mask, SPARSE_SHIFT, tail, tailCache| Constructor and Description |
|---|
FloatingCountersSpscConcurrentArrayQueue(int capacity) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(E e) |
boolean |
addAll(java.util.Collection<? extends E> c) |
void |
clear() |
boolean |
contains(java.lang.Object o) |
boolean |
containsAll(java.util.Collection<?> c) |
E |
element() |
private E |
getElement(long index) |
boolean |
isEmpty() |
java.util.Iterator<E> |
iterator() |
boolean |
offer(E e) |
private long |
offset(long index) |
E |
peek() |
E |
poll() |
E |
remove() |
boolean |
remove(java.lang.Object o) |
boolean |
removeAll(java.util.Collection<?> c) |
boolean |
retainAll(java.util.Collection<?> c) |
int |
size() |
java.lang.Object[] |
toArray() |
<T> T[] |
toArray(T[] a) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitprotected long p00
protected long p01
protected long p02
protected long p03
protected long p04
protected long p05
protected long p06
protected long p07
protected long p50
protected long p51
protected long p52
protected long p53
protected long p54
protected long p55
protected long p56
private static final long ARRAY_BASE
private static final int ELEMENT_SHIFT
public FloatingCountersSpscConcurrentArrayQueue(int capacity)
public boolean add(E e)
private long offset(long index)
private E getElement(long index)
public int size()
size in interface java.util.Collection<E>public boolean isEmpty()
isEmpty in interface java.util.Collection<E>public boolean contains(java.lang.Object o)
contains in interface java.util.Collection<E>public java.util.Iterator<E> iterator()
public java.lang.Object[] toArray()
toArray in interface java.util.Collection<E>public <T> T[] toArray(T[] a)
toArray in interface java.util.Collection<E>public boolean remove(java.lang.Object o)
remove in interface java.util.Collection<E>public boolean containsAll(java.util.Collection<?> c)
containsAll in interface java.util.Collection<E>public boolean addAll(java.util.Collection<? extends E> c)
addAll in interface java.util.Collection<E>public boolean removeAll(java.util.Collection<?> c)
removeAll in interface java.util.Collection<E>public boolean retainAll(java.util.Collection<?> c)
retainAll in interface java.util.Collection<E>public void clear()
clear in interface java.util.Collection<E>