Class ScriptExecutorFactory
- java.lang.Object
-
- org.wso2.carbon.mediator.datamapper.engine.core.executors.ScriptExecutorFactory
-
public class ScriptExecutorFactory extends Object
This class act as a factory to get the requested script executor
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Executor
getScriptExecutor(String executorPoolSize)
This method will return the script executor according to the givenScriptExecutorType
static void
releaseScriptExecutor(Executor executor)
This method will release the script executor to the pool
-
-
-
Method Detail
-
getScriptExecutor
public static Executor getScriptExecutor(String executorPoolSize) throws InterruptedException
This method will return the script executor according to the givenScriptExecutorType
- Returns:
- script executor
- Throws:
InterruptedException
-
releaseScriptExecutor
public static void releaseScriptExecutor(Executor executor) throws InterruptedException
This method will release the script executor to the pool- Throws:
InterruptedException
-
-