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) @Nullable SingleConsumerQueue.Node<E>next(package private) static longNEXT_OFFSET(package private) @Nullable Evalue
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) voidawait()A no-op wait until the operation has completed.(package private) voidcomplete()A no-op notification that the element was added to the queue.(package private) @Nullable SingleConsumerQueue.Node<E>getNextRelaxed()(package private) booleanisDone()Always returns that the operation completed.(package private) voidlazySetNext(@Nullable SingleConsumerQueue.Node<E> newNext)java.lang.StringtoString()
-
-
-
Field Detail
-
NEXT_OFFSET
static final long NEXT_OFFSET
-
value
@Nullable E value
-
next
volatile @Nullable 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:
toStringin classjava.lang.Object
-
-