public final class EvenMoreExecutors extends Object
ExecutorService factory methods.| Modifier and Type | Method and Description |
|---|---|
static ExecutorService |
newBoundedCachedThreadPool(int minThreads,
int maxThreads,
int queueSize)
Creates a thread pool that creates new threads as needed up to
a maximum number of threads, but will reuse previously constructed
threads when they are available.
|
public static ExecutorService newBoundedCachedThreadPool(int minThreads, int maxThreads, int queueSize)
minThreads - the minimum number of threads to have at a given timemaxThreads - the maximum number of threads to have at a given timequeueSize - the size of the queue before new submissions are rejectedCopyright © 2010-2014. All Rights Reserved.