public final class ExecutorEngine extends Object implements AutoCloseable
| Constructor and Description |
|---|
ExecutorEngine(int executorSize) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
<I,O> List<O> |
execute(ExecutionGroupContext<I> executionGroupContext,
ExecutorCallback<I,O> callback)
Execute.
|
<I,O> List<O> |
execute(ExecutionGroupContext<I> executionGroupContext,
ExecutorCallback<I,O> firstCallback,
ExecutorCallback<I,O> callback,
boolean serial)
Execute.
|
public <I,O> List<O> execute(ExecutionGroupContext<I> executionGroupContext, ExecutorCallback<I,O> callback) throws SQLException
I - type of input valueO - type of return valueexecutionGroupContext - execution group contextcallback - executor callbackSQLException - throw if execute failurepublic <I,O> List<O> execute(ExecutionGroupContext<I> executionGroupContext, ExecutorCallback<I,O> firstCallback, ExecutorCallback<I,O> callback, boolean serial) throws SQLException
I - type of input valueO - type of return valueexecutionGroupContext - execution group contextfirstCallback - first executor callbackcallback - other executor callbackserial - whether using multi thread execute or notSQLException - throw if execute failurepublic void close()
close in interface AutoCloseableCopyright © 2022 The Apache Software Foundation. All rights reserved.