T - the value typepublic final class SpscOneQueue<T> extends AtomicReference<T> implements SimplePlainQueue<T>
| Constructor and Description |
|---|
SpscOneQueue() |
| Modifier and Type | Method and Description |
|---|---|
void |
clear() |
boolean |
isEmpty() |
boolean |
offer(T value) |
boolean |
offer(T v1,
T v2) |
T |
poll() |
accumulateAndGet, compareAndSet, get, getAndAccumulate, getAndSet, getAndUpdate, lazySet, set, toString, updateAndGet, weakCompareAndSetpublic boolean offer(T value)
offer in interface SimpleQueue<T>public boolean offer(T v1, T v2)
offer in interface SimpleQueue<T>public boolean isEmpty()
isEmpty in interface SimpleQueue<T>public void clear()
clear in interface SimpleQueue<T>public T poll()
poll in interface SimplePlainQueue<T>poll in interface SimpleQueue<T>