List of usage examples for org.springframework.scheduling.concurrent ThreadPoolExecutorFactoryBean setMaxPoolSize
public void setMaxPoolSize(int maxPoolSize)
From source file:io.pivotal.strepsirrhini.chaoslemur.Application.java
@Bean(destroyMethod = "shutdown") ThreadPoolExecutorFactoryBean executor() { ThreadPoolExecutorFactoryBean factoryBean = new ThreadPoolExecutorFactoryBean(); factoryBean.setQueueCapacity(5);//from www .ja va 2 s . c om factoryBean.setCorePoolSize(5); factoryBean.setMaxPoolSize(20); factoryBean.setThreadNamePrefix("destroyer-"); return factoryBean; }