Package com.github.benmanes.caffeine
Class SingleConsumerQueue.LinearizableNode<E>
- java.lang.Object
-
- com.github.benmanes.caffeine.SingleConsumerQueue.Node<E>
-
- com.github.benmanes.caffeine.SingleConsumerQueue.LinearizableNode<E>
-
- Enclosing class:
- SingleConsumerQueue<E>
static final class SingleConsumerQueue.LinearizableNode<E> extends SingleConsumerQueue.Node<E>
-
-
Field Summary
Fields Modifier and Type Field Description (package private) booleandone-
Fields inherited from class com.github.benmanes.caffeine.SingleConsumerQueue.Node
next, NEXT_OFFSET, value
-
-
Constructor Summary
Constructors Constructor Description LinearizableNode(@Nullable E value)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) voidawait()A busy wait until the operation has completed.(package private) voidcomplete()A notification that the element was added to the queue.(package private) booleanisDone()Returns whether the operation completed.-
Methods inherited from class com.github.benmanes.caffeine.SingleConsumerQueue.Node
getNextRelaxed, lazySetNext, toString
-
-
-
-
Constructor Detail
-
LinearizableNode
LinearizableNode(@Nullable E value)
-
-
Method Detail
-
complete
void complete()
A notification that the element was added to the queue.- Overrides:
completein classSingleConsumerQueue.Node<E>
-
await
void await()
A busy wait until the operation has completed.- Overrides:
awaitin classSingleConsumerQueue.Node<E>
-
isDone
boolean isDone()
Returns whether the operation completed.- Overrides:
isDonein classSingleConsumerQueue.Node<E>
-
-