@ -75,6 +75,8 @@ public class ThreadPoolExecutorFactoryBean extends ExecutorConfigurationSupport
@@ -75,6 +75,8 @@ public class ThreadPoolExecutorFactoryBean extends ExecutorConfigurationSupport
privatebooleanallowCoreThreadTimeOut=false;
privatebooleanprestartAllCoreThreads=false;
privateintqueueCapacity=Integer.MAX_VALUE;
privatebooleanexposeUnconfigurableExecutor=false;
@ -118,6 +120,16 @@ public class ThreadPoolExecutorFactoryBean extends ExecutorConfigurationSupport
@@ -118,6 +120,16 @@ public class ThreadPoolExecutorFactoryBean extends ExecutorConfigurationSupport
@ -153,6 +165,9 @@ public class ThreadPoolExecutorFactoryBean extends ExecutorConfigurationSupport
@@ -153,6 +165,9 @@ public class ThreadPoolExecutorFactoryBean extends ExecutorConfigurationSupport
if(this.allowCoreThreadTimeOut){
executor.allowCoreThreadTimeOut(true);
}
if(this.prestartAllCoreThreads){
executor.prestartAllCoreThreads();
}
// Wrap executor with an unconfigurable decorator.
@ -94,6 +94,8 @@ public class ThreadPoolTaskExecutor extends ExecutorConfigurationSupport
@@ -94,6 +94,8 @@ public class ThreadPoolTaskExecutor extends ExecutorConfigurationSupport
privatebooleanallowCoreThreadTimeOut=false;
privatebooleanprestartAllCoreThreads=false;
@Nullable
privateTaskDecoratortaskDecorator;
@ -197,6 +199,16 @@ public class ThreadPoolTaskExecutor extends ExecutorConfigurationSupport
@@ -197,6 +199,16 @@ public class ThreadPoolTaskExecutor extends ExecutorConfigurationSupport
@ -256,6 +268,9 @@ public class ThreadPoolTaskExecutor extends ExecutorConfigurationSupport
@@ -256,6 +268,9 @@ public class ThreadPoolTaskExecutor extends ExecutorConfigurationSupport