|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jclouds.concurrent.DynamicExecutors
public class DynamicExecutors
Factory and utility methods for handling DynamicThreadPoolExecutor.
| Method Summary | |
|---|---|
static ExecutorService |
newScalingThreadPool(int min,
int max,
long keepAliveTime,
ThreadFactory threadFactory)
Creates a thread pool, same as in #newScalingThreadPool(int, int, long), using the provided ThreadFactory
to create new threads when needed. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static ExecutorService newScalingThreadPool(int min,
int max,
long keepAliveTime,
ThreadFactory threadFactory)
#newScalingThreadPool(int, int, long), using the provided ThreadFactory
to create new threads when needed.
min - the number of threads to keep in the pool, even if they are idle.max - the maximum number of threads to allow in the pool.keepAliveTime - when the number of threads is greater than the min, this is the maximum time that excess idle threads
will wait for new tasks before terminating (in milliseconds).threadFactory - the factory to use when creating new threads.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||