Packages

c

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
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: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. def afterExecute(r: Runnable, t: Throwable): Unit
    Definition Classes
    BlockingThreadPoolExecutor → ThreadPoolExecutor
  5. def allowCoreThreadTimeOut(arg0: Boolean): Unit
    Definition Classes
    ThreadPoolExecutor
  6. def allowsCoreThreadTimeOut(): Boolean
    Definition Classes
    ThreadPoolExecutor
  7. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  8. def awaitTermination(arg0: Long, arg1: TimeUnit): Boolean
    Definition Classes
    ThreadPoolExecutor → ExecutorService
    Annotations
    @throws( ... )
  9. def beforeExecute(arg0: Thread, arg1: Runnable): Unit
    Attributes
    protected[java.util.concurrent]
    Definition Classes
    ThreadPoolExecutor
  10. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )
  11. def close(): Unit
    Definition Classes
    BlockingThreadPoolExecutor → AutoCloseable
  12. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  13. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  14. def execute(runnable: Runnable): Unit
    Definition Classes
    BlockingThreadPoolExecutor → ThreadPoolExecutor → Executor
  15. def execute(task: ⇒ Any): Unit
  16. def finalize(): Unit
    Attributes
    protected[java.util.concurrent]
    Definition Classes
    ThreadPoolExecutor → AnyRef
  17. def getActiveCount(): Int
    Definition Classes
    ThreadPoolExecutor
  18. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  19. def getCompletedTaskCount(): Long
    Definition Classes
    ThreadPoolExecutor
  20. def getCorePoolSize(): Int
    Definition Classes
    ThreadPoolExecutor
  21. def getKeepAliveTime(arg0: TimeUnit): Long
    Definition Classes
    ThreadPoolExecutor
  22. def getLargestPoolSize(): Int
    Definition Classes
    ThreadPoolExecutor
  23. def getMaximumPoolSize(): Int
    Definition Classes
    ThreadPoolExecutor
  24. def getPoolSize(): Int
    Definition Classes
    ThreadPoolExecutor
  25. def getQueue(): BlockingQueue[Runnable]
    Definition Classes
    ThreadPoolExecutor
  26. def getRejectedExecutionHandler(): RejectedExecutionHandler
    Definition Classes
    ThreadPoolExecutor
  27. def getTaskCount(): Long
    Definition Classes
    ThreadPoolExecutor
  28. def getThreadFactory(): ThreadFactory
    Definition Classes
    ThreadPoolExecutor
  29. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  30. def invokeAll[T](arg0: Collection[_ <: Callable[T]], arg1: Long, arg2: TimeUnit): List[Future[T]]
    Definition Classes
    AbstractExecutorService → ExecutorService
    Annotations
    @throws( ... )
  31. def invokeAll[T](arg0: Collection[_ <: Callable[T]]): List[Future[T]]
    Definition Classes
    AbstractExecutorService → ExecutorService
    Annotations
    @throws( ... )
  32. def invokeAny[T](arg0: Collection[_ <: Callable[T]], arg1: Long, arg2: TimeUnit): T
    Definition Classes
    AbstractExecutorService → ExecutorService
    Annotations
    @throws( ... ) @throws( ... ) @throws( ... )
  33. def invokeAny[T](arg0: Collection[_ <: Callable[T]]): T
    Definition Classes
    AbstractExecutorService → ExecutorService
    Annotations
    @throws( ... ) @throws( ... )
  34. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  35. def isShutdown(): Boolean
    Definition Classes
    ThreadPoolExecutor → ExecutorService
  36. def isTerminated(): Boolean
    Definition Classes
    ThreadPoolExecutor → ExecutorService
  37. def isTerminating(): Boolean
    Definition Classes
    ThreadPoolExecutor
  38. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  39. def newTaskFor[T](arg0: Callable[T]): RunnableFuture[T]
    Attributes
    protected[java.util.concurrent]
    Definition Classes
    AbstractExecutorService
  40. def newTaskFor[T](arg0: Runnable, arg1: T): RunnableFuture[T]
    Attributes
    protected[java.util.concurrent]
    Definition Classes
    AbstractExecutorService
  41. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  42. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  43. def prestartAllCoreThreads(): Int
    Definition Classes
    ThreadPoolExecutor
  44. def prestartCoreThread(): Boolean
    Definition Classes
    ThreadPoolExecutor
  45. def purge(): Unit
    Definition Classes
    ThreadPoolExecutor
  46. def remove(arg0: Runnable): Boolean
    Definition Classes
    ThreadPoolExecutor
  47. val running: AtomicBoolean
  48. val semaphore: Semaphore
  49. def setCorePoolSize(arg0: Int): Unit
    Definition Classes
    ThreadPoolExecutor
  50. def setKeepAliveTime(arg0: Long, arg1: TimeUnit): Unit
    Definition Classes
    ThreadPoolExecutor
  51. def setMaximumPoolSize(arg0: Int): Unit
    Definition Classes
    ThreadPoolExecutor
  52. def setRejectedExecutionHandler(arg0: RejectedExecutionHandler): Unit
    Definition Classes
    ThreadPoolExecutor
  53. def setThreadFactory(arg0: ThreadFactory): Unit
    Definition Classes
    ThreadPoolExecutor
  54. def shutdown(): Unit
    Definition Classes
    BlockingThreadPoolExecutor → ThreadPoolExecutor → ExecutorService
  55. def shutdownNow(): List[Runnable]
    Definition Classes
    ThreadPoolExecutor → ExecutorService
  56. def submit[T](arg0: Callable[T]): Future[T]
    Definition Classes
    AbstractExecutorService → ExecutorService
  57. def submit[T](arg0: Runnable, arg1: T): Future[T]
    Definition Classes
    AbstractExecutorService → ExecutorService
  58. def submit(arg0: Runnable): Future[_]
    Definition Classes
    AbstractExecutorService → ExecutorService
  59. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  60. def terminated(): Unit
    Attributes
    protected[java.util.concurrent]
    Definition Classes
    ThreadPoolExecutor
  61. def toString(): String
    Definition Classes
    ThreadPoolExecutor → AnyRef → Any
  62. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  63. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  64. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )

Inherited from AutoCloseable

Inherited from ThreadPoolExecutor

Inherited from AbstractExecutorService

Inherited from ExecutorService

Inherited from Executor

Inherited from AnyRef

Inherited from Any

Ungrouped