Packages

c

slick.util

ManagedArrayBlockingQueue

class ManagedArrayBlockingQueue[E >: Null <: PrioritizedRunnable] extends AbstractQueue[E] with BlockingQueue[E] 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[E]
Source
ManagedArrayBlockingQueue.scala
Linear Supertypes
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 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 ManagedArrayBlockingQueue(maximumInUse: Int, capacity: Int, fair: Boolean = false)

Value Members

  1. def add(arg0: E): Boolean
    Definition Classes
    AbstractQueue → Queue → AbstractCollection → Collection
  2. def addAll(arg0: Collection[_ <: E]): Boolean
    Definition Classes
    AbstractQueue → AbstractCollection → Collection
  3. def clear(): Unit
    Definition Classes
    ManagedArrayBlockingQueue → AbstractQueue → AbstractCollection → Collection
  4. def contains(o: AnyRef): Boolean
    Definition Classes
    ManagedArrayBlockingQueue → BlockingQueue → AbstractCollection → Collection
  5. def containsAll(arg0: Collection[_ <: AnyRef]): Boolean
    Definition Classes
    AbstractCollection → Collection
  6. def drainTo(c: Collection[_ >: E], maxElements: Int): Int
    Definition Classes
    ManagedArrayBlockingQueue → BlockingQueue
  7. def drainTo(c: Collection[_ >: E]): Int
    Definition Classes
    ManagedArrayBlockingQueue → BlockingQueue
  8. def element(): E
    Definition Classes
    AbstractQueue → Queue
  9. def forEach(arg0: Consumer[_ >: E <: AnyRef]): Unit
    Definition Classes
    Iterable
  10. def isEmpty(): Boolean
    Definition Classes
    AbstractCollection → Collection
  11. def iterator(): Iterator[E]
    Definition Classes
    ManagedArrayBlockingQueue → AbstractCollection → Collection → Iterable
  12. def offer(e: E, timeout: Long, unit: TimeUnit): Boolean
    Definition Classes
    ManagedArrayBlockingQueue → BlockingQueue
  13. def offer(e: E): Boolean
    Definition Classes
    ManagedArrayBlockingQueue → BlockingQueue → Queue
  14. def parallelStream(): Stream[E]
    Definition Classes
    Collection
  15. def peek(): E
    Definition Classes
    ManagedArrayBlockingQueue → Queue
  16. def poll(timeout: Long, unit: TimeUnit): E
    Definition Classes
    ManagedArrayBlockingQueue → BlockingQueue
  17. def poll(): E
    Definition Classes
    ManagedArrayBlockingQueue → Queue
  18. def put(e: E): Unit
    Definition Classes
    ManagedArrayBlockingQueue → BlockingQueue
  19. def remainingCapacity(): Int
    Definition Classes
    ManagedArrayBlockingQueue → BlockingQueue
  20. def remove(o: AnyRef): Boolean
    Definition Classes
    ManagedArrayBlockingQueue → BlockingQueue → AbstractCollection → Collection
  21. def remove(): E
    Definition Classes
    AbstractQueue → Queue
  22. def removeAll(arg0: Collection[_ <: AnyRef]): Boolean
    Definition Classes
    AbstractCollection → Collection
  23. def removeIf(arg0: Predicate[_ >: E <: AnyRef]): Boolean
    Definition Classes
    Collection
  24. def retainAll(arg0: Collection[_ <: AnyRef]): Boolean
    Definition Classes
    AbstractCollection → Collection
  25. def size(): Int
    Definition Classes
    ManagedArrayBlockingQueue → AbstractCollection → Collection
  26. def spliterator(): Spliterator[E]
    Definition Classes
    Collection → Iterable
  27. def stream(): Stream[E]
    Definition Classes
    Collection
  28. def take(): E
    Definition Classes
    ManagedArrayBlockingQueue → BlockingQueue
  29. def toArray[T <: AnyRef](arg0: Array[T]): Array[T]
    Definition Classes
    AbstractCollection → Collection
  30. def toArray(): Array[AnyRef]
    Definition Classes
    AbstractCollection → Collection
  31. def toString(): String
    Definition Classes
    AbstractCollection → AnyRef → Any