@Factory public class ExecutorFactory extends Object
ExecutorService instances based on UserExecutorConfiguration instances.| Constructor and Description |
|---|
ExecutorFactory(ThreadFactory threadFactory) |
| Modifier and Type | Method and Description |
|---|---|
ExecutorService |
executorService(ExecutorConfiguration executorConfiguration)
Create the ExecutorService with the given configuration.
|
public ExecutorFactory(ThreadFactory threadFactory)
threadFactory - The factory to create new threads@EachBean(value=ExecutorConfiguration.class) @Bean(preDestroy="shutdown") public ExecutorService executorService(ExecutorConfiguration executorConfiguration)
executorConfiguration - The configuration to create a thread pool that creates new threads as needed