public final class LockFreeBatchFeedbackQueue<ElementT>
extends java.lang.Object
Constructor and Description |
---|
LockFreeBatchFeedbackQueue() |
Modifier and Type | Method and Description |
---|---|
boolean |
addAndCheckIfWasEmpty(ElementT element)
Adds an element to the queue atomically.
|
java.util.Deque<ElementT> |
drainAll()
Atomically grabs all that elements of this queue.
|
public boolean addAndCheckIfWasEmpty(ElementT element)
element
- the element to add to the queue.public java.util.Deque<ElementT> drainAll()
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.