public final class BambooExecutors extends Object
Modifier and Type | Method and Description |
---|---|
static ExecutorService |
newBlockingThreadPoolExecutor(int corePoolSize,
int maximumPoolSize,
long keepAliveTime,
TimeUnit unit,
BlockingQueue<Runnable> workQueue,
ThreadFactory threadFactory)
Creates an executor that will block execute() calls when thread pool depth reaches maximumPoolSize and workQueue is full.
|
static ExecutorService |
newBlockingThreadPoolExecutor(int poolSize,
long keepAliveTime,
TimeUnit unit,
BlockingQueue<Runnable> workQueue,
ThreadFactory threadFactory) |
static ExecutorService |
newThreadPoolExecutorWithCoreThreadTimeOut(int poolSize,
int keepAliveTime,
TimeUnit timeUnit,
BlockingQueue<Runnable> workQueue,
ThreadFactory threadFactory)
Returns a
ThreadPoolExecutor that can spin down its core threads. |
public static ExecutorService newBlockingThreadPoolExecutor(int corePoolSize, int maximumPoolSize, long keepAliveTime, TimeUnit unit, BlockingQueue<Runnable> workQueue, ThreadFactory threadFactory)
ThreadPoolExecutor(int, int, long, TimeUnit, BlockingQueue, ThreadFactory)
public static ExecutorService newBlockingThreadPoolExecutor(int poolSize, long keepAliveTime, TimeUnit unit, BlockingQueue<Runnable> workQueue, ThreadFactory threadFactory)
public static ExecutorService newThreadPoolExecutorWithCoreThreadTimeOut(int poolSize, int keepAliveTime, TimeUnit timeUnit, BlockingQueue<Runnable> workQueue, ThreadFactory threadFactory)
ThreadPoolExecutor
that can spin down its core threads.Copyright © 2021 Atlassian Software Systems Pty Ltd. All rights reserved.