Class

akka.util

BoundedBlockingQueue

Related Doc: package util

Permalink

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
Linear Supertypes
BlockingQueue[E], AbstractQueue[E], Queue[E], AbstractCollection[E], Collection[E], Iterable[E], AnyRef, Any
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. All

Instance Constructors

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

    Permalink

    maxCapacity

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

    backing

    - the backing Queue

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. def +(other: String): String

    Permalink
    Implicit information
    This member is added by an implicit conversion from BoundedBlockingQueue[E] to any2stringadd[BoundedBlockingQueue[E]] performed by method any2stringadd in scala.Predef.
    Definition Classes
    any2stringadd
  4. def ->[B](y: B): (BoundedBlockingQueue[E], B)

    Permalink
    Implicit information
    This member is added by an implicit conversion from BoundedBlockingQueue[E] to ArrowAssoc[BoundedBlockingQueue[E]] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @inline()
  5. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  6. def add(arg0: E): Boolean

    Permalink
    Definition Classes
    AbstractQueue → Queue → AbstractCollection → Collection
  7. def addAll(arg0: Collection[_ <: E]): Boolean

    Permalink
    Definition Classes
    AbstractQueue → AbstractCollection → Collection
  8. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  9. def clear(): Unit

    Permalink
    Definition Classes
    BoundedBlockingQueue → AbstractQueue → AbstractCollection → Collection
  10. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate() @throws( ... )
  11. def contains(e: AnyRef): Boolean

    Permalink
    Definition Classes
    BoundedBlockingQueue → BlockingQueue → AbstractCollection → Collection
  12. def containsAll(c: Collection[_]): Boolean

    Permalink
    Definition Classes
    BoundedBlockingQueue → AbstractCollection → Collection
  13. def drainTo(c: Collection[_ >: E], maxElements: Int): Int

    Permalink
    Definition Classes
    BoundedBlockingQueue → BlockingQueue
  14. def drainTo(c: Collection[_ >: E]): Int

    Permalink
    Definition Classes
    BoundedBlockingQueue → BlockingQueue
  15. def element(): E

    Permalink
    Definition Classes
    AbstractQueue → Queue
  16. def ensuring(cond: (BoundedBlockingQueue[E]) ⇒ Boolean, msg: ⇒ Any): BoundedBlockingQueue[E]

    Permalink
    Implicit information
    This member is added by an implicit conversion from BoundedBlockingQueue[E] to Ensuring[BoundedBlockingQueue[E]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  17. def ensuring(cond: (BoundedBlockingQueue[E]) ⇒ Boolean): BoundedBlockingQueue[E]

    Permalink
    Implicit information
    This member is added by an implicit conversion from BoundedBlockingQueue[E] to Ensuring[BoundedBlockingQueue[E]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  18. def ensuring(cond: Boolean, msg: ⇒ Any): BoundedBlockingQueue[E]

    Permalink
    Implicit information
    This member is added by an implicit conversion from BoundedBlockingQueue[E] to Ensuring[BoundedBlockingQueue[E]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  19. def ensuring(cond: Boolean): BoundedBlockingQueue[E]

    Permalink
    Implicit information
    This member is added by an implicit conversion from BoundedBlockingQueue[E] to Ensuring[BoundedBlockingQueue[E]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  20. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  21. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  22. def forEach(arg0: Consumer[_ >: E]): Unit

    Permalink
    Definition Classes
    Iterable
  23. def formatted(fmtstr: String): String

    Permalink
    Implicit information
    This member is added by an implicit conversion from BoundedBlockingQueue[E] to StringFormat[BoundedBlockingQueue[E]] performed by method StringFormat in scala.Predef.
    Definition Classes
    StringFormat
    Annotations
    @inline()
  24. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
    Annotations
    @HotSpotIntrinsicCandidate()
  25. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
    Annotations
    @HotSpotIntrinsicCandidate()
  26. def isEmpty(): Boolean

    Permalink
    Definition Classes
    BoundedBlockingQueue → AbstractCollection → Collection
  27. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  28. def iterator(): Iterator[E]

    Permalink
    Definition Classes
    BoundedBlockingQueue → AbstractCollection → Collection → Iterable
  29. val lock: ReentrantLock

    Permalink
    Attributes
    protected
  30. val maxCapacity: Int

    Permalink

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

  31. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  32. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate()
  33. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate()
  34. def offer(e: E, timeout: Long, unit: TimeUnit): Boolean

    Permalink
    Definition Classes
    BoundedBlockingQueue → BlockingQueue
  35. def offer(e: E): Boolean

    Permalink
    Definition Classes
    BoundedBlockingQueue → BlockingQueue → Queue
  36. def parallelStream(): Stream[E]

    Permalink
    Definition Classes
    Collection
  37. def peek(): E

    Permalink
    Definition Classes
    BoundedBlockingQueue → Queue
  38. def poll(): E

    Permalink
    Definition Classes
    BoundedBlockingQueue → Queue
  39. def poll(timeout: Long, unit: TimeUnit): E

    Permalink
    Definition Classes
    BoundedBlockingQueue → BlockingQueue
  40. def put(e: E): Unit

    Permalink
    Definition Classes
    BoundedBlockingQueue → BlockingQueue
  41. def remainingCapacity(): Int

    Permalink
    Definition Classes
    BoundedBlockingQueue → BlockingQueue
  42. def remove(e: AnyRef): Boolean

    Permalink
    Definition Classes
    BoundedBlockingQueue → BlockingQueue → AbstractCollection → Collection
  43. def remove(): E

    Permalink
    Definition Classes
    AbstractQueue → Queue
  44. def removeAll(c: Collection[_]): Boolean

    Permalink
    Definition Classes
    BoundedBlockingQueue → AbstractCollection → Collection
  45. def removeIf(arg0: Predicate[_ >: E]): Boolean

    Permalink
    Definition Classes
    Collection
  46. def retainAll(c: Collection[_]): Boolean

    Permalink
    Definition Classes
    BoundedBlockingQueue → AbstractCollection → Collection
  47. def size(): Int

    Permalink
    Definition Classes
    BoundedBlockingQueue → AbstractCollection → Collection
  48. def spliterator(): Spliterator[E]

    Permalink
    Definition Classes
    Collection → Iterable
  49. def stream(): Stream[E]

    Permalink
    Definition Classes
    Collection
  50. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  51. def take(): E

    Permalink
    Definition Classes
    BoundedBlockingQueue → BlockingQueue
  52. def toArray[X](a: Array[X]): Array[X]

    Permalink
    Definition Classes
    BoundedBlockingQueue → AbstractCollection → Collection
  53. def toArray(): Array[AnyRef]

    Permalink
    Definition Classes
    BoundedBlockingQueue → AbstractCollection → Collection
  54. def toString(): String

    Permalink
    Definition Classes
    AbstractCollection → AnyRef → Any
  55. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  56. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  57. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  58. def [B](y: B): (BoundedBlockingQueue[E], B)

    Permalink
    Implicit information
    This member is added by an implicit conversion from BoundedBlockingQueue[E] to ArrowAssoc[BoundedBlockingQueue[E]] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc

Deprecated Value Members

  1. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @Deprecated @deprecated @throws( classOf[java.lang.Throwable] )
    Deprecated

    (Since version ) see corresponding Javadoc for more information.

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 from BoundedBlockingQueue[E] to any2stringadd[BoundedBlockingQueue[E]]

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

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

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

Ungrouped