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>
static class SingleConsumerQueue.Node<E> extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description (package private) SingleConsumerQueue.Node<E>
next
(package private) static long
NEXT_OFFSET
(package private) E
value
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (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) SingleConsumerQueue.Node<E>
getNextRelaxed()
(package private) boolean
isDone()
Always returns that the operation completed.(package private) void
lazySetNext(SingleConsumerQueue.Node<E> newNext)
java.lang.String
toString()
-
-
-
Field Detail
-
NEXT_OFFSET
static final long NEXT_OFFSET
-
value
E value
-
next
volatile SingleConsumerQueue.Node<E> next
-
-
Constructor Detail
-
Node
Node(@Nullable E value)
-
-
Method Detail
-
getNextRelaxed
@Nullable SingleConsumerQueue.Node<E> getNextRelaxed()
-
lazySetNext
void lazySetNext(@Nullable SingleConsumerQueue.Node<E> newNext)
-
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
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-