java.util.concurrent.ConcurrentLinkedQueue when the requirement is to
create an unbounded queue with no requirement to shrink the queue. The aim is
to provide the bare minimum of required functionality as quickly as possible
with minimum garbage.
| Modifier and Type | Field and Description |
|---|---|
| public static final int | |
| private int | |
| private Object[] | |
| private int | |
| private int |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public synchronized void | |
| private void | |
| public synchronized boolean | |
| public synchronized T | |
| public synchronized int |
| DEFAULT_SIZE | back to summary |
|---|---|
| public static final int DEFAULT_SIZE | |
| insert | back to summary |
|---|---|
| private int insert | |
| queue | back to summary |
|---|---|
| private Object[] queue | |
| remove | back to summary |
|---|---|
| private int remove | |
| size | back to summary |
|---|---|
| private int size | |
| SynchronizedQueue | back to summary |
|---|---|
| public SynchronizedQueue() | |
| SynchronizedQueue | back to summary |
|---|---|
| public SynchronizedQueue(int initialSize) | |
| clear | back to summary |
|---|---|
| public synchronized void clear() | |
| expand | back to summary |
|---|---|
| private void expand() | |
| offer | back to summary |
|---|---|
| public synchronized boolean offer(T t) | |
| poll | back to summary |
|---|---|
| public synchronized T poll() | |
| size | back to summary |
|---|---|
| public synchronized int size() | |