com.sksamuel.exts.concurrent

BlockingThreadPoolExecutor

class BlockingThreadPoolExecutor extends ThreadPoolExecutor with AutoCloseable

Creates an ExecutionService which will block on submit once the specified queue size has been reached. The submitting thread will be unblocked once a task that is executing has completed.

Linear Supertypes
AutoCloseable, ThreadPoolExecutor, AbstractExecutorService, ExecutorService, Executor, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. BlockingThreadPoolExecutor
  2. AutoCloseable
  3. ThreadPoolExecutor
  4. AbstractExecutorService
  5. ExecutorService
  6. Executor
  7. AnyRef
  8. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new BlockingThreadPoolExecutor(poolSize: Int, queueSize: Int)

    poolSize

    sets the number of threads in the thread pool

    queueSize

    the maximum number of _waiting_ threads. Be clear here, the queue size does not include executing threads, but only the number of tasks that can be queued after that. If you want an ExecutionService that blocks as soon as each thread is busy, set queueSize to zero.

Value Members

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

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. def afterExecute(r: Runnable, t: Throwable): Unit

    Definition Classes
    BlockingThreadPoolExecutor → ThreadPoolExecutor
  7. def allowCoreThreadTimeOut(arg0: Boolean): Unit

    Definition Classes
    ThreadPoolExecutor
  8. def allowsCoreThreadTimeOut(): Boolean

    Definition Classes
    ThreadPoolExecutor
  9. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  10. def awaitTermination(arg0: Long, arg1: TimeUnit): Boolean

    Definition Classes
    ThreadPoolExecutor → ExecutorService
    Annotations
    @throws( ... )
  11. def beforeExecute(arg0: Thread, arg1: Runnable): Unit

    Attributes
    protected[java.util.concurrent]
    Definition Classes
    ThreadPoolExecutor
  12. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  13. def close(): Unit

    Definition Classes
    BlockingThreadPoolExecutor → AutoCloseable
  14. final def eq(arg0: AnyRef): Boolean

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

    Definition Classes
    AnyRef → Any
  16. def execute(runnable: Runnable): Unit

    Definition Classes
    BlockingThreadPoolExecutor → ThreadPoolExecutor → Executor
  17. def execute(task: ⇒ Any): Unit

  18. def finalize(): Unit

    Attributes
    protected[java.util.concurrent]
    Definition Classes
    ThreadPoolExecutor → AnyRef
  19. def getActiveCount(): Int

    Definition Classes
    ThreadPoolExecutor
  20. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  21. def getCompletedTaskCount(): Long

    Definition Classes
    ThreadPoolExecutor
  22. def getCorePoolSize(): Int

    Definition Classes
    ThreadPoolExecutor
  23. def getKeepAliveTime(arg0: TimeUnit): Long

    Definition Classes
    ThreadPoolExecutor
  24. def getLargestPoolSize(): Int

    Definition Classes
    ThreadPoolExecutor
  25. def getMaximumPoolSize(): Int

    Definition Classes
    ThreadPoolExecutor
  26. def getPoolSize(): Int

    Definition Classes
    ThreadPoolExecutor
  27. def getQueue(): BlockingQueue[Runnable]

    Definition Classes
    ThreadPoolExecutor
  28. def getRejectedExecutionHandler(): RejectedExecutionHandler

    Definition Classes
    ThreadPoolExecutor
  29. def getTaskCount(): Long

    Definition Classes
    ThreadPoolExecutor
  30. def getThreadFactory(): ThreadFactory

    Definition Classes
    ThreadPoolExecutor
  31. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  32. def invokeAll[T](arg0: Collection[_ <: Callable[T]], arg1: Long, arg2: TimeUnit): List[Future[T]]

    Definition Classes
    AbstractExecutorService → ExecutorService
    Annotations
    @throws( ... )
  33. def invokeAll[T](arg0: Collection[_ <: Callable[T]]): List[Future[T]]

    Definition Classes
    AbstractExecutorService → ExecutorService
    Annotations
    @throws( ... )
  34. def invokeAny[T](arg0: Collection[_ <: Callable[T]], arg1: Long, arg2: TimeUnit): T

    Definition Classes
    AbstractExecutorService → ExecutorService
    Annotations
    @throws( ... ) @throws( ... ) @throws( ... )
  35. def invokeAny[T](arg0: Collection[_ <: Callable[T]]): T

    Definition Classes
    AbstractExecutorService → ExecutorService
    Annotations
    @throws( ... ) @throws( ... )
  36. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  37. def isShutdown(): Boolean

    Definition Classes
    ThreadPoolExecutor → ExecutorService
  38. def isTerminated(): Boolean

    Definition Classes
    ThreadPoolExecutor → ExecutorService
  39. def isTerminating(): Boolean

    Definition Classes
    ThreadPoolExecutor
  40. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  41. def newTaskFor[T](arg0: Callable[T]): RunnableFuture[T]

    Attributes
    protected[java.util.concurrent]
    Definition Classes
    AbstractExecutorService
  42. def newTaskFor[T](arg0: Runnable, arg1: T): RunnableFuture[T]

    Attributes
    protected[java.util.concurrent]
    Definition Classes
    AbstractExecutorService
  43. final def notify(): Unit

    Definition Classes
    AnyRef
  44. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  45. def prestartAllCoreThreads(): Int

    Definition Classes
    ThreadPoolExecutor
  46. def prestartCoreThread(): Boolean

    Definition Classes
    ThreadPoolExecutor
  47. def purge(): Unit

    Definition Classes
    ThreadPoolExecutor
  48. def remove(arg0: Runnable): Boolean

    Definition Classes
    ThreadPoolExecutor
  49. val running: AtomicBoolean

  50. val semaphore: Semaphore

  51. def setCorePoolSize(arg0: Int): Unit

    Definition Classes
    ThreadPoolExecutor
  52. def setKeepAliveTime(arg0: Long, arg1: TimeUnit): Unit

    Definition Classes
    ThreadPoolExecutor
  53. def setMaximumPoolSize(arg0: Int): Unit

    Definition Classes
    ThreadPoolExecutor
  54. def setRejectedExecutionHandler(arg0: RejectedExecutionHandler): Unit

    Definition Classes
    ThreadPoolExecutor
  55. def setThreadFactory(arg0: ThreadFactory): Unit

    Definition Classes
    ThreadPoolExecutor
  56. def shutdown(): Unit

    Definition Classes
    BlockingThreadPoolExecutor → ThreadPoolExecutor → ExecutorService
  57. def shutdownNow(): List[Runnable]

    Definition Classes
    ThreadPoolExecutor → ExecutorService
  58. def submit[T](arg0: Callable[T]): Future[T]

    Definition Classes
    AbstractExecutorService → ExecutorService
  59. def submit[T](arg0: Runnable, arg1: T): Future[T]

    Definition Classes
    AbstractExecutorService → ExecutorService
  60. def submit(arg0: Runnable): Future[_]

    Definition Classes
    AbstractExecutorService → ExecutorService
  61. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  62. def terminated(): Unit

    Attributes
    protected[java.util.concurrent]
    Definition Classes
    ThreadPoolExecutor
  63. def toString(): String

    Definition Classes
    ThreadPoolExecutor → AnyRef → Any
  64. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AutoCloseable

Inherited from ThreadPoolExecutor

Inherited from AbstractExecutorService

Inherited from ExecutorService

Inherited from Executor

Inherited from AnyRef

Inherited from Any

Ungrouped