List of usage examples for org.springframework.scheduling.concurrent ThreadPoolTaskExecutor setCorePoolSize
public void setCorePoolSize(int corePoolSize)
From source file:org.springframework.statemachine.recipes.tasks.TasksHandler.java
private static TaskExecutor taskExecutor(int taskCount) { ThreadPoolTaskExecutor taskExecutor = new ThreadPoolTaskExecutor(); taskExecutor.afterPropertiesSet();//from w ww .jav a 2 s .c o m taskExecutor.setCorePoolSize(taskCount); return taskExecutor; }