public class DefaultExecutorServiceFactory extends Object implements IExecutorServiceFactory
ExecutorService objects using the
Executors.newFixedThreadPool(int) method.| Constructor and Description |
|---|
DefaultExecutorServiceFactory() |
| Modifier and Type | Method and Description |
|---|---|
ExecutorService |
getExecutorService(int nParallelTasks)
Get an
ExecutorService for the given number of parallel tasks. |
@Nonnull public ExecutorService getExecutorService(@Nonnegative int nParallelTasks)
IExecutorServiceFactoryExecutorService for the given number of parallel tasks. It
is up to the implementation to interpret the value or not. The number of
parallel tasks can therefore considered a hint to the implementation.getExecutorService in interface IExecutorServiceFactorynParallelTasks - The number of parallel tasks to perform. Needs to be > 0.null ExecutorService object.Copyright © 2006–2015 phloc systems. All rights reserved.