Package com.github.benmanes.caffeine
Class SingleConsumerQueue.Node<E>
java.lang.Object
com.github.benmanes.caffeine.SingleConsumerQueue.Node<E>
- Direct Known Subclasses:
SingleConsumerQueue.LinearizableNode
- Enclosing class:
SingleConsumerQueue<E>
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) @Nullable SingleConsumerQueue.Node
<E> (package private) static final long
(package private) @Nullable E
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) void
await()
A no-op wait until the operation has completed.(package private) void
complete()
A no-op notification that the element was added to the queue.(package private) @Nullable SingleConsumerQueue.Node
<E> (package private) boolean
isDone()
Always returns that the operation completed.(package private) void
lazySetNext
(@Nullable SingleConsumerQueue.Node<E> newNext) toString()
-
Field Details
-
NEXT_OFFSET
static final long NEXT_OFFSET -
value
@Nullable E value -
next
-
-
Constructor Details
-
Node
Node(@Nullable E value)
-
-
Method Details
-
getNextRelaxed
@Nullable SingleConsumerQueue.Node<E> getNextRelaxed() -
lazySetNext
-
complete
void complete()A no-op notification that the element was added to the queue. -
await
void await()A no-op wait until the operation has completed. -
isDone
boolean isDone()Always returns that the operation completed. -
toString
-