public class AtomicQueue<T>
extends java.lang.Object
put(Object)
and another thread to call poll()
. Multiple threads must
not call these methods.Constructor and Description |
---|
AtomicQueue(int capacity) |
Modifier and Type | Method and Description |
---|---|
T |
poll() |
boolean |
put(T value) |