com.gc.iotools.stream.base
Class ExecutorServiceFactory

java.lang.Object
  extended by 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

Method Summary
static ExecutorService getExecutor(ExecutionModel tmodel)
           
static void setDefaultThreadPoolExecutor(ExecutorService executor)
          Sets the default ExecutorService returned when this class is invoked with
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

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.