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) |
public static ExecutorService newBlockingThreadPoolExecutor(int corePoolSize, int maximumPoolSize, long keepAliveTime, TimeUnit unit, BlockingQueue<Runnable> workQueue, ThreadFactory threadFactory)
ThreadPoolExecutor.ThreadPoolExecutor(int, int, long, TimeUnit, BlockingQueue, ThreadFactory)
public static ExecutorService newBlockingThreadPoolExecutor(int poolSize, long keepAliveTime, TimeUnit unit, BlockingQueue<Runnable> workQueue, ThreadFactory threadFactory)
Copyright © 2019 Atlassian Software Systems Pty Ltd. All rights reserved.