Packages

c

slick.util

ManagedArrayBlockingQueue

class ManagedArrayBlockingQueue extends AbstractQueue[PrioritizedRunnable] with BlockingQueue[PrioritizedRunnable] with Logging

A simplified copy of java.util.concurrent.ArrayBlockingQueue with additional logic for temporarily rejecting elements based on the current size. All features of the original ArrayBlockingQueue have been ported, except the mutation methods of the iterator. See java.util.concurrent.ArrayBlockingQueue for documentation.

Furthermore this implementation has a pause feature where it does not pass through low- or mid-priority tasks when paused.

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

Instance Constructors

  1. new ManagedArrayBlockingQueue(maximumInUse: Int, capacity: Int, fair: Boolean = false)

Value Members

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

Inherited from Queue[PrioritizedRunnable]

Inherited from AnyRef

Inherited from Any

Inherited by implicit conversion StringFormat fromManagedArrayBlockingQueue to StringFormat[ManagedArrayBlockingQueue]

Inherited by implicit conversion Ensuring fromManagedArrayBlockingQueue to Ensuring[ManagedArrayBlockingQueue]

Inherited by implicit conversion ArrowAssoc fromManagedArrayBlockingQueue to ArrowAssoc[ManagedArrayBlockingQueue]

Ungrouped