this.rejectPolicy = rejectPolicy;
}
@Override
void startValue(StartContext context) throws StartException {
ManagedThreadFactoryImpl managedThreadFactory = managedThreadFactoryInjectedValue.getOptionalValue();
if(managedThreadFactory == null) {
// if not injected create one using normal thread priority
final String threadFactoryName = "EE-ManagedExecutorService-"+name;
managedThreadFactory = new ManagedThreadFactoryImpl(threadFactoryName, null, Thread.NORM_PRIORITY);
}
executorService = new ManagedExecutorServiceImpl(name, managedThreadFactory, hungTaskThreshold, longRunningTasks, corePoolSize, maxPoolSize, keepAliveTime, keepAliveTimeUnit, threadLifeTime, queueCapacity, contextService.getOptionalValue(), rejectPolicy);
}