T
- the value typepublic abstract class BasicIntQueueSubscription<T> extends AtomicInteger implements QueueSubscription<T>
Constructor and Description |
---|
BasicIntQueueSubscription() |
Modifier and Type | Method and Description |
---|---|
boolean |
offer(T e)
Atomically enqueue a single.
|
boolean |
offer(T v1,
T v2)
Atomically enqueue two values.
|
accumulateAndGet, addAndGet, compareAndSet, decrementAndGet, doubleValue, floatValue, get, getAndAccumulate, getAndAdd, getAndDecrement, getAndIncrement, getAndSet, getAndUpdate, incrementAndGet, intValue, lazySet, longValue, set, toString, updateAndGet, weakCompareAndSet
byteValue, shortValue
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
requestFusion
clear, isEmpty, poll
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.