public class TaskExecutorRegistration extends Object
ThreadPoolTaskExecutor.| Constructor and Description |
|---|
TaskExecutorRegistration() |
| Modifier and Type | Method and Description |
|---|---|
TaskExecutorRegistration |
corePoolSize(int corePoolSize)
Set the ThreadPoolExecutor's core pool size.
|
protected ThreadPoolTaskExecutor |
getTaskExecutor() |
TaskExecutorRegistration |
keepAliveSeconds(int keepAliveSeconds)
Set the ThreadPoolExecutor's keep-alive seconds.
|
TaskExecutorRegistration |
maxPoolSize(int maxPoolSize)
Set the ThreadPoolExecutor's maximum pool size.
|
TaskExecutorRegistration |
queueCapacity(int queueCapacity)
Set the capacity for the ThreadPoolExecutor's BlockingQueue.
|
public TaskExecutorRegistration corePoolSize(int corePoolSize)
public TaskExecutorRegistration maxPoolSize(int maxPoolSize)
Integer.MAX_VALUE.public TaskExecutorRegistration keepAliveSeconds(int keepAliveSeconds)
public TaskExecutorRegistration queueCapacity(int queueCapacity)
Integer.MAX_VALUE.
Any positive value will lead to a LinkedBlockingQueue instance; any other value will lead to a SynchronousQueue instance.
LinkedBlockingQueue,
SynchronousQueueprotected ThreadPoolTaskExecutor getTaskExecutor()