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) boolean
done
-
Fields inherited from class com.github.benmanes.caffeine.SingleConsumerQueue.Node
next, NEXT_OFFSET, value
-
-
Constructor Summary
Constructors Constructor Description LinearizableNode(E value)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) void
await()
A busy wait until the operation has completed.(package private) void
complete()
A notification that the element was added to the queue.(package private) boolean
isDone()
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:
complete
in classSingleConsumerQueue.Node<E>
-
await
void await()
A busy wait until the operation has completed.- Overrides:
await
in classSingleConsumerQueue.Node<E>
-
isDone
boolean isDone()
Returns whether the operation completed.- Overrides:
isDone
in classSingleConsumerQueue.Node<E>
-
-