public class ConcurrentQueueBlockingImpl<V> extends Object implements ConcurrentQueue<V>
ConcurrentQueue.Handle<V>| Constructor and Description |
|---|
ConcurrentQueueBlockingImpl() |
| Modifier and Type | Method and Description |
|---|---|
ConcurrentQueue.Handle<V> |
offer(V arg)
Add a new element to the tail of the queue.
|
V |
poll()
Return an element from the head of the queue.
|
int |
size()
Return the number of elements in the queue.
|
public int size()
ConcurrentQueuesize in interface ConcurrentQueue<V>public ConcurrentQueue.Handle<V> offer(V arg)
offer in interface ConcurrentQueue<V>public V poll()
poll in interface ConcurrentQueue<V>Copyright © 2005–2018 Oracle Corporation. All rights reserved.