abstract class AbstractBoundedNodeQueue[T] extends AnyRef
Ordering
- Alphabetic
- By Inheritance
Inherited
- AbstractBoundedNodeQueue
- AnyRef
- Any
Implicitly
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
Visibility
- Public
- Protected
Value Members
- final def add(value: T): Boolean
- final def addNode(n: Node[T]): Boolean
- final def capacity(): Int
- returns
the maximum capacity of this queue
- final def isEmpty(): Boolean
- final def peek(): T
- returns
the first value of this queue, null if empty
- final def poll(): T
Removes the first element of this queue if any
Removes the first element of this queue if any
- returns
the value of the first element of the queue, null if empty
- final def pollNode(): Node[T]
Removes the first element of this queue if any
Removes the first element of this queue if any
- returns
the
Node
of the first element of the queue, null if empty
- final def size(): Int
Returns an approximation of the queue's "current" size
Lock-free bounded non-blocking multiple-producer single-consumer queue based on the works of:
Andriy Plokhotnuyk (https://github.com/plokhotnyuk)
Dmitriy Vyukov's non-intrusive MPSC queue: