Class ExecutorFactory
java.lang.Object
org.apache.catalina.tribes.util.ExecutorFactory
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic ExecutorService
newThreadPool
(int minThreads, int maxThreads, long maxIdleTime, TimeUnit unit) static ExecutorService
newThreadPool
(int minThreads, int maxThreads, long maxIdleTime, TimeUnit unit, ThreadFactory threadFactory)
-
Field Details
-
sm
-
-
Constructor Details
-
ExecutorFactory
public ExecutorFactory()
-
-
Method Details
-
newThreadPool
public static ExecutorService newThreadPool(int minThreads, int maxThreads, long maxIdleTime, TimeUnit unit) -
newThreadPool
public static ExecutorService newThreadPool(int minThreads, int maxThreads, long maxIdleTime, TimeUnit unit, ThreadFactory threadFactory)
-