Java源码示例:org.apache.catalina.core.StandardThreadExecutor

示例1
public HermesTomcat() {
	initializeParameters();

	executor = new StandardThreadExecutor();
	executor.setMaxThreads(maxThreads);
	executor.setMaxQueueSize(maxQueueSize);
	executor.setNamePrefix("hermes-tomcat-exec-");
	executor.setName("hermes-tomcat-executor");
}
 
示例2
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;
}