public ManagedScheduledExecutorServiceImpl(String name,
ManagedThreadFactoryImpl managedThreadFactory,
long hungTaskThreshold,
boolean longRunningTasks,
int corePoolSize,
long keepAliveTime,
TimeUnit keepAliveTimeUnit,
long threadLifeTime,
ContextServiceImpl contextService,
RejectPolicy rejectPolicy) {
super(name, managedThreadFactory, hungTaskThreshold, longRunningTasks,
contextService,
contextService != null? contextService.getContextSetupProvider(): null,
rejectPolicy);
threadPoolExecutor = new ManagedScheduledThreadPoolExecutor(corePoolSize,
this.managedThreadFactory);
threadPoolExecutor.setKeepAliveTime(keepAliveTime, keepAliveTimeUnit);
threadPoolExecutor.setThreadLifeTime(threadLifeTime);
adapter = new ManagedScheduledExecutorServiceAdapter(this);
}