public abstract class IntConcurrentCircularArrayQueue
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected int[] |
buffer |
protected static int |
BUFFER_PAD |
protected int |
capacity |
protected long |
mask |
protected static int |
SPARSE_SHIFT |
| Constructor and Description |
|---|
IntConcurrentCircularArrayQueue(int capacity) |
IntConcurrentCircularArrayQueue(IntConcurrentCircularArrayQueue c) |
| Modifier and Type | Method and Description |
|---|---|
protected long |
calcOffset(long index) |
protected int |
lpElement(int[] buffer,
long offset) |
protected int |
lpElement(long offset) |
protected int |
lvElement(int[] buffer,
long offset) |
protected int |
lvElement(long offset) |
protected void |
soElement(int[] buffer,
long offset,
int e) |
protected void |
soElement(long offset,
int e) |
protected void |
spElement(int[] buffer,
long offset,
int e) |
protected void |
spElement(long offset,
int e) |
protected void |
svElement(int[] buffer,
long offset,
int e) |
protected void |
svElement(long offset,
int e) |
protected static final int SPARSE_SHIFT
protected static final int BUFFER_PAD
protected final int capacity
protected final long mask
protected final int[] buffer
public IntConcurrentCircularArrayQueue(int capacity)
public IntConcurrentCircularArrayQueue(IntConcurrentCircularArrayQueue c)
protected final long calcOffset(long index)
protected final void spElement(long offset,
int e)
protected final void soElement(long offset,
int e)
protected final void svElement(long offset,
int e)
protected final int lpElement(long offset)
protected final int lvElement(long offset)
protected final void spElement(int[] buffer,
long offset,
int e)
protected final void soElement(int[] buffer,
long offset,
int e)
protected final void svElement(int[] buffer,
long offset,
int e)
protected final int lpElement(int[] buffer,
long offset)
protected final int lvElement(int[] buffer,
long offset)