public HermesTomcat() {
initializeParameters();
executor = new StandardThreadExecutor();
executor.setMaxThreads(maxThreads);
executor.setMaxQueueSize(maxQueueSize);
executor.setNamePrefix("hermes-tomcat-exec-");
executor.setName("hermes-tomcat-executor");
}
public StandardThreadExecutor init() {
final StandardThreadExecutor executor = new StandardThreadExecutor();
executor.setName(name);
executor.setDaemon(daemon);
executor.setNamePrefix(namePrefix);
executor.setMaxThreads(maxThreads);
executor.setMinSpareThreads(minSpareThreads);
executor.setMaxIdleTime(maxIdleTime);
executor.setMaxQueueSize(maxQueueSize);
executor.setPrestartminSpareThreads(prestartminSpareThreads);
executor.setThreadRenewalDelay(threadRenewalDelay);
return executor;
}