c

akka.util

BoundedBlockingQueue

class BoundedBlockingQueue[E <: AnyRef] extends AbstractQueue[E] with BlockingQueue[E]

BoundedBlockingQueue wraps any Queue and turns the result into a BlockingQueue with a limited capacity.

Source
BoundedBlockingQueue.scala
Known Subclasses
Type Hierarchy
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. BoundedBlockingQueue
  2. BlockingQueue
  3. AbstractQueue
  4. Queue
  5. AbstractCollection
  6. Collection
  7. Iterable
  8. AnyRef
  9. Any
Implicitly
  1. by any2stringadd
  2. by StringFormat
  3. by Ensuring
  4. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new BoundedBlockingQueue(maxCapacity: Int, backing: Queue[E])

    maxCapacity

    - the maximum capacity of this Queue, needs to be > 0

    backing

    - the backing Queue

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. def +(other: String): String
    Implicit
    This member is added by an implicit conversion from BoundedBlockingQueue[E] toany2stringadd[BoundedBlockingQueue[E]] performed by method any2stringadd in scala.Predef.
    Definition Classes
    any2stringadd
  4. def ->[B](y: B): (BoundedBlockingQueue[E], B)
    Implicit
    This member is added by an implicit conversion from BoundedBlockingQueue[E] toArrowAssoc[BoundedBlockingQueue[E]] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @inline()
  5. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  6. def add(arg0: E): Boolean
    Definition Classes
    AbstractQueue → Queue → AbstractCollection → Collection
  7. def addAll(arg0: Collection[_ <: E]): Boolean
    Definition Classes
    AbstractQueue → AbstractCollection → Collection
  8. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  9. def clear(): Unit
    Definition Classes
    BoundedBlockingQueue → AbstractQueue → AbstractCollection → Collection
  10. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @HotSpotIntrinsicCandidate() @native()
  11. def contains(e: AnyRef): Boolean
    Definition Classes
    BoundedBlockingQueue → BlockingQueue → AbstractCollection → Collection
  12. def containsAll(c: Collection[_]): Boolean
    Definition Classes
    BoundedBlockingQueue → AbstractCollection → Collection
  13. def createLock(): ReentrantLock
    Attributes
    protected
  14. def createNotEmptyCondition(): Condition
    Attributes
    protected
  15. def createNotFullCondition(): Condition
    Attributes
    protected
  16. def drainTo(c: Collection[_ >: E], maxElements: Int): Int
    Definition Classes
    BoundedBlockingQueue → BlockingQueue
  17. def drainTo(c: Collection[_ >: E]): Int
    Definition Classes
    BoundedBlockingQueue → BlockingQueue
  18. def element(): E
    Definition Classes
    AbstractQueue → Queue
  19. def ensuring(cond: (BoundedBlockingQueue[E]) => Boolean, msg: => Any): BoundedBlockingQueue[E]
    Implicit
    This member is added by an implicit conversion from BoundedBlockingQueue[E] toEnsuring[BoundedBlockingQueue[E]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  20. def ensuring(cond: (BoundedBlockingQueue[E]) => Boolean): BoundedBlockingQueue[E]
    Implicit
    This member is added by an implicit conversion from BoundedBlockingQueue[E] toEnsuring[BoundedBlockingQueue[E]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  21. def ensuring(cond: Boolean, msg: => Any): BoundedBlockingQueue[E]
    Implicit
    This member is added by an implicit conversion from BoundedBlockingQueue[E] toEnsuring[BoundedBlockingQueue[E]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  22. def ensuring(cond: Boolean): BoundedBlockingQueue[E]
    Implicit
    This member is added by an implicit conversion from BoundedBlockingQueue[E] toEnsuring[BoundedBlockingQueue[E]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  23. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  24. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  25. def forEach(arg0: Consumer[_ >: E <: AnyRef]): Unit
    Definition Classes
    Iterable
  26. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @HotSpotIntrinsicCandidate() @native()
  27. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @HotSpotIntrinsicCandidate() @native()
  28. def isEmpty(): Boolean
    Definition Classes
    BoundedBlockingQueue → AbstractCollection → Collection
  29. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  30. def iterator(): Iterator[E]
    Definition Classes
    BoundedBlockingQueue → AbstractCollection → Collection → Iterable
  31. val lock: ReentrantLock
    Attributes
    protected
  32. val maxCapacity: Int
  33. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  34. val notEmpty: Condition
    Attributes
    protected
  35. val notFull: Condition
    Attributes
    protected
  36. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate() @native()
  37. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate() @native()
  38. def offer(e: E, timeout: Long, unit: TimeUnit): Boolean
    Definition Classes
    BoundedBlockingQueue → BlockingQueue
  39. def offer(e: E): Boolean
    Definition Classes
    BoundedBlockingQueue → BlockingQueue → Queue
  40. def parallelStream(): Stream[E]
    Definition Classes
    Collection
  41. def peek(): E
    Definition Classes
    BoundedBlockingQueue → Queue
  42. def poll(): E
    Definition Classes
    BoundedBlockingQueue → Queue
  43. def poll(timeout: Long, unit: TimeUnit): E
    Definition Classes
    BoundedBlockingQueue → BlockingQueue
  44. def put(e: E): Unit
    Definition Classes
    BoundedBlockingQueue → BlockingQueue
  45. def remainingCapacity(): Int
    Definition Classes
    BoundedBlockingQueue → BlockingQueue
  46. def remove(e: AnyRef): Boolean
    Definition Classes
    BoundedBlockingQueue → BlockingQueue → AbstractCollection → Collection
  47. def remove(): E
    Definition Classes
    AbstractQueue → Queue
  48. def removeAll(c: Collection[_]): Boolean
    Definition Classes
    BoundedBlockingQueue → AbstractCollection → Collection
  49. def removeIf(arg0: Predicate[_ >: E <: AnyRef]): Boolean
    Definition Classes
    Collection
  50. def retainAll(c: Collection[_]): Boolean
    Definition Classes
    BoundedBlockingQueue → AbstractCollection → Collection
  51. def size(): Int
    Definition Classes
    BoundedBlockingQueue → AbstractCollection → Collection
  52. def spliterator(): Spliterator[E]
    Definition Classes
    Collection → Iterable
  53. def stream(): Stream[E]
    Definition Classes
    Collection
  54. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  55. def take(): E
    Definition Classes
    BoundedBlockingQueue → BlockingQueue
  56. def toArray[X](a: Array[X]): Array[X]
    Definition Classes
    BoundedBlockingQueue → AbstractCollection → Collection
  57. def toArray(): Array[AnyRef]
    Definition Classes
    BoundedBlockingQueue → AbstractCollection → Collection
  58. def toArray[T <: AnyRef](arg0: IntFunction[Array[T]]): Array[T]
    Definition Classes
    Collection
  59. def toString(): String
    Definition Classes
    AbstractCollection → AnyRef → Any
  60. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  61. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  62. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

    (Since version 9)

  2. def formatted(fmtstr: String): String
    Implicit
    This member is added by an implicit conversion from BoundedBlockingQueue[E] toStringFormat[BoundedBlockingQueue[E]] performed by method StringFormat in scala.Predef.
    Definition Classes
    StringFormat
    Annotations
    @deprecated @inline()
    Deprecated

    (Since version 2.12.16) Use formatString.format(value) instead of value.formatted(formatString), or use the f"" string interpolator. In Java 15 and later, formatted resolves to the new method in String which has reversed parameters.

  3. def [B](y: B): (BoundedBlockingQueue[E], B)
    Implicit
    This member is added by an implicit conversion from BoundedBlockingQueue[E] toArrowAssoc[BoundedBlockingQueue[E]] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @deprecated
    Deprecated

    (Since version 2.13.0) Use -> instead. If you still wish to display it as one character, consider using a font with programming ligatures such as Fira Code.

Inherited from BlockingQueue[E]

Inherited from AbstractQueue[E]

Inherited from Queue[E]

Inherited from AbstractCollection[E]

Inherited from Collection[E]

Inherited from Iterable[E]

Inherited from AnyRef

Inherited from Any

Inherited by implicit conversion any2stringadd fromBoundedBlockingQueue[E] to any2stringadd[BoundedBlockingQueue[E]]

Inherited by implicit conversion StringFormat fromBoundedBlockingQueue[E] to StringFormat[BoundedBlockingQueue[E]]

Inherited by implicit conversion Ensuring fromBoundedBlockingQueue[E] to Ensuring[BoundedBlockingQueue[E]]

Inherited by implicit conversion ArrowAssoc fromBoundedBlockingQueue[E] to ArrowAssoc[BoundedBlockingQueue[E]]

Ungrouped