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
Ordering
- Alphabetic
- By Inheritance
Inherited
- BlockingThreadPoolExecutor
- AutoCloseable
- ThreadPoolExecutor
- AbstractExecutorService
- ExecutorService
- Executor
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Instance Constructors
-
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
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
afterExecute(r: Runnable, t: Throwable): Unit
- Definition Classes
- BlockingThreadPoolExecutor → ThreadPoolExecutor
-
def
allowCoreThreadTimeOut(arg0: Boolean): Unit
- Definition Classes
- ThreadPoolExecutor
-
def
allowsCoreThreadTimeOut(): Boolean
- Definition Classes
- ThreadPoolExecutor
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
awaitTermination(arg0: Long, arg1: TimeUnit): Boolean
- Definition Classes
- ThreadPoolExecutor → ExecutorService
- Annotations
- @throws( ... )
-
def
beforeExecute(arg0: Thread, arg1: Runnable): Unit
- Attributes
- protected[java.util.concurrent]
- Definition Classes
- ThreadPoolExecutor
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
def
close(): Unit
- Definition Classes
- BlockingThreadPoolExecutor → AutoCloseable
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
execute(runnable: Runnable): Unit
- Definition Classes
- BlockingThreadPoolExecutor → ThreadPoolExecutor → Executor
- def execute(task: ⇒ Any): Unit
-
def
finalize(): Unit
- Attributes
- protected[java.util.concurrent]
- Definition Classes
- ThreadPoolExecutor → AnyRef
-
def
getActiveCount(): Int
- Definition Classes
- ThreadPoolExecutor
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
getCompletedTaskCount(): Long
- Definition Classes
- ThreadPoolExecutor
-
def
getCorePoolSize(): Int
- Definition Classes
- ThreadPoolExecutor
-
def
getKeepAliveTime(arg0: TimeUnit): Long
- Definition Classes
- ThreadPoolExecutor
-
def
getLargestPoolSize(): Int
- Definition Classes
- ThreadPoolExecutor
-
def
getMaximumPoolSize(): Int
- Definition Classes
- ThreadPoolExecutor
-
def
getPoolSize(): Int
- Definition Classes
- ThreadPoolExecutor
-
def
getQueue(): BlockingQueue[Runnable]
- Definition Classes
- ThreadPoolExecutor
-
def
getRejectedExecutionHandler(): RejectedExecutionHandler
- Definition Classes
- ThreadPoolExecutor
-
def
getTaskCount(): Long
- Definition Classes
- ThreadPoolExecutor
-
def
getThreadFactory(): ThreadFactory
- Definition Classes
- ThreadPoolExecutor
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
invokeAll[T](arg0: Collection[_ <: Callable[T]], arg1: Long, arg2: TimeUnit): List[Future[T]]
- Definition Classes
- AbstractExecutorService → ExecutorService
- Annotations
- @throws( ... )
-
def
invokeAll[T](arg0: Collection[_ <: Callable[T]]): List[Future[T]]
- Definition Classes
- AbstractExecutorService → ExecutorService
- Annotations
- @throws( ... )
-
def
invokeAny[T](arg0: Collection[_ <: Callable[T]], arg1: Long, arg2: TimeUnit): T
- Definition Classes
- AbstractExecutorService → ExecutorService
- Annotations
- @throws( ... ) @throws( ... ) @throws( ... )
-
def
invokeAny[T](arg0: Collection[_ <: Callable[T]]): T
- Definition Classes
- AbstractExecutorService → ExecutorService
- Annotations
- @throws( ... ) @throws( ... )
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
isShutdown(): Boolean
- Definition Classes
- ThreadPoolExecutor → ExecutorService
-
def
isTerminated(): Boolean
- Definition Classes
- ThreadPoolExecutor → ExecutorService
-
def
isTerminating(): Boolean
- Definition Classes
- ThreadPoolExecutor
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
newTaskFor[T](arg0: Callable[T]): RunnableFuture[T]
- Attributes
- protected[java.util.concurrent]
- Definition Classes
- AbstractExecutorService
-
def
newTaskFor[T](arg0: Runnable, arg1: T): RunnableFuture[T]
- Attributes
- protected[java.util.concurrent]
- Definition Classes
- AbstractExecutorService
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
def
prestartAllCoreThreads(): Int
- Definition Classes
- ThreadPoolExecutor
-
def
prestartCoreThread(): Boolean
- Definition Classes
- ThreadPoolExecutor
-
def
purge(): Unit
- Definition Classes
- ThreadPoolExecutor
-
def
remove(arg0: Runnable): Boolean
- Definition Classes
- ThreadPoolExecutor
- val running: AtomicBoolean
- val semaphore: Semaphore
-
def
setCorePoolSize(arg0: Int): Unit
- Definition Classes
- ThreadPoolExecutor
-
def
setKeepAliveTime(arg0: Long, arg1: TimeUnit): Unit
- Definition Classes
- ThreadPoolExecutor
-
def
setMaximumPoolSize(arg0: Int): Unit
- Definition Classes
- ThreadPoolExecutor
-
def
setRejectedExecutionHandler(arg0: RejectedExecutionHandler): Unit
- Definition Classes
- ThreadPoolExecutor
-
def
setThreadFactory(arg0: ThreadFactory): Unit
- Definition Classes
- ThreadPoolExecutor
-
def
shutdown(): Unit
- Definition Classes
- BlockingThreadPoolExecutor → ThreadPoolExecutor → ExecutorService
-
def
shutdownNow(): List[Runnable]
- Definition Classes
- ThreadPoolExecutor → ExecutorService
-
def
submit[T](arg0: Callable[T]): Future[T]
- Definition Classes
- AbstractExecutorService → ExecutorService
-
def
submit[T](arg0: Runnable, arg1: T): Future[T]
- Definition Classes
- AbstractExecutorService → ExecutorService
-
def
submit(arg0: Runnable): Future[_]
- Definition Classes
- AbstractExecutorService → ExecutorService
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
terminated(): Unit
- Attributes
- protected[java.util.concurrent]
- Definition Classes
- ThreadPoolExecutor
-
def
toString(): String
- Definition Classes
- ThreadPoolExecutor → AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )