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(Collection<InputGroup<I>> inputGroups,
GroupedCallback<I,O> callback)
Execute.
|
<I,O> List<O> |
execute(Collection<InputGroup<I>> inputGroups,
GroupedCallback<I,O> firstCallback,
GroupedCallback<I,O> callback,
boolean serial)
Execute.
|
public <I,O> List<O> execute(Collection<InputGroup<I>> inputGroups, GroupedCallback<I,O> callback) throws SQLException
I - type of input valueO - type of return valueinputGroups - input groupscallback - grouped callbackSQLException - throw if execute failurepublic <I,O> List<O> execute(Collection<InputGroup<I>> inputGroups, GroupedCallback<I,O> firstCallback, GroupedCallback<I,O> callback, boolean serial) throws SQLException
I - type of input valueO - type of return valueinputGroups - input groupsfirstCallback - first grouped callbackcallback - other grouped callbackserial - whether using multi thread execute or notSQLException - throw if execute failurepublic void close()
close in interface AutoCloseableCopyright © 2020 The Apache Software Foundation. All rights reserved.