ExecutorService by downstream consumers. The
implementation can be plugged in via the configuration parameter -threadpoolfactoryclass
| Modifier and Type | Method and Description |
|---|---|
| public ExecutorService | Returns: - An implementation ofExecutorServicethe number of threads to keep in the pool, even if they are idle, unless
corePoolSize, int allowCoreThreadTimeOut is setthe maximum number of threads to allow in the pool maximumPoolSize, long when the number of threads is greater than the core, this is the maximum
time that excess idle threads will wait for new tasks before terminating. keepAliveTime, TimeUnit the time unit for the unit, BlockingQueue<Runnable> keepAliveTime argumentthe queue to use for holding tasks before they are executed. This queue will
hold only the workQueue, ThreadFactory Runnable tasks submitted by the execute method.the factory to use when the executor creates a new thread * threadFactory)
|
| create | back to summary |
|---|---|
public ExecutorService create(int corePoolSize, int maximumPoolSize, long keepAliveTime, TimeUnit unit, BlockingQueue<Runnable> workQueue, ThreadFactory threadFactory)
| |