T
- the output value typepublic abstract class BasicQueueDisposable<T> extends Object implements QueueDisposable<T>
Constructor and Description |
---|
BasicQueueDisposable() |
Modifier and Type | Method and Description |
---|---|
boolean |
offer(T e)
Atomically enqueue a single.
|
boolean |
offer(T v1,
T v2)
Atomically enqueue two values.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
requestFusion
clear, isEmpty, poll
dispose, isDisposed
public final boolean offer(T e)
SimpleQueue
offer
in interface SimpleQueue<T>
e
- the value to enqueue, not nullpublic final boolean offer(T v1, T v2)
SimpleQueue
offer
in interface SimpleQueue<T>
v1
- the first value to enqueue, not nullv2
- the second value to enqueue, not nullCopyright © 2018 JBoss by Red Hat. All rights reserved.