public class ConcurrentQueueNonBlockingImpl<V> extends Object implements ConcurrentQueue<V>
ConcurrentQueue.Handle<V>| Constructor and Description |
|---|
ConcurrentQueueNonBlockingImpl(long ttl) |
| Modifier and Type | Method and Description |
|---|---|
ConcurrentQueue.Handle<V> |
offer(V arg)
Add a new element to the tail of the queue.
|
ConcurrentQueue.Handle<V> |
peek()
Return the handle for the head of the queue.
|
ConcurrentQueue.Handle<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 ConcurrentQueue.Handle<V> poll()
poll in interface ConcurrentQueue<V>public ConcurrentQueue.Handle<V> peek()
ConcurrentQueuepeek in interface ConcurrentQueue<V>Copyright © 2017–2019 Eclipse Foundation. All rights reserved.