com.gc.iotools.stream.base
Class ExecutorServiceFactory
java.lang.Object
com.gc.iotools.stream.base.ExecutorServiceFactory
public final class ExecutorServiceFactory
- extends Object
This class is responsible of instantiating the right executor given an
ExecutionModel.
- Since:
- 1.0.2
- Author:
- Davide Simonetti
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
getExecutor
public static ExecutorService getExecutor(ExecutionModel tmodel)
setDefaultThreadPoolExecutor
public static void setDefaultThreadPoolExecutor(ExecutorService executor)
- Sets the default ExecutorService returned when this class is invoked with
- Parameters:
executor - ExecutorService for the STATIC_THREAD_POOL model.
Copyright © 2008-2009. All Rights Reserved.