ThreadPoolTaskExecutor.
| Modifier and Type | Field and Description |
|---|---|
| private Integer | |
| private Integer | |
| private Integer | |
| private Integer | |
| private final ThreadPoolTaskExecutor | taskExecutor
References Deprecated
ThreadPoolTaskExecutor is deprecated or references (maybe indirectly) at least one deprecated element.
|
| Access | Constructor and Description |
|---|---|
| public | TaskExecutorRegistration()
Create a new |
| public | TaskExecutorRegistration(ThreadPoolTaskExecutor
the executor to use taskExecutor)
References Deprecated
ThreadPoolTaskExecutor is deprecated or references (maybe indirectly) at least one deprecated element.
Create a new |
| Modifier and Type | Method and Description |
|---|---|
| public TaskExecutorRegistration | |
| protected ThreadPoolTaskExecutor | getTaskExecutor()
References Deprecated
ThreadPoolTaskExecutor is deprecated or references (maybe indirectly) at least one deprecated element.
|
| public TaskExecutorRegistration | keepAliveSeconds(int keepAliveSeconds)
Set the time limit for which threads may remain idle before being terminated. |
| public TaskExecutorRegistration | |
| public TaskExecutorRegistration |
| corePoolSize | back to summary |
|---|---|
| private Integer corePoolSize
| |
| keepAliveSeconds | back to summary |
|---|---|
| private Integer keepAliveSeconds
| |
| maxPoolSize | back to summary |
|---|---|
| private Integer maxPoolSize
| |
| queueCapacity | back to summary |
|---|---|
| private Integer queueCapacity
| |
| taskExecutor | back to summary |
|---|---|
| private final ThreadPoolTaskExecutor taskExecutor
References Deprecated
See corresponding docs for further information. | |
| TaskExecutorRegistration | back to summary |
|---|---|
| public TaskExecutorRegistration() Create a new | |
| TaskExecutorRegistration | back to summary |
|---|---|
| public TaskExecutorRegistration(ThreadPoolTaskExecutor taskExecutor)
References Deprecated
See corresponding docs for further information. Create a new
| |
| corePoolSize | back to summary |
|---|---|
| public TaskExecutorRegistration corePoolSize(int corePoolSize) Set the core pool size of the ThreadPoolExecutor. Note The core pool size is effectively the max pool size
when an unbounded By default this is set to twice the value of
| |
| getTaskExecutor | back to summary |
|---|---|
| protected ThreadPoolTaskExecutor getTaskExecutor()
References Deprecated
See corresponding docs for further information. | |
| keepAliveSeconds | back to summary |
|---|---|
| public TaskExecutorRegistration keepAliveSeconds(int keepAliveSeconds) Set the time limit for which threads may remain idle before being terminated. If there are more than the core number of threads currently in the pool, after waiting this amount of time without processing a task, excess threads will be terminated. This overrides any value set in the constructor. By default this is set to 60. | |
| maxPoolSize | back to summary |
|---|---|
| public TaskExecutorRegistration maxPoolSize(int maxPoolSize) Set the max pool size of the ThreadPoolExecutor. Note When an unbounded
By default this is set to | |
| queueCapacity | back to summary |
|---|---|
| public TaskExecutorRegistration queueCapacity(int queueCapacity) Set the queue capacity for the ThreadPoolExecutor. Note when an unbounded By default this is set to | |