public final class ShardingExecuteEngine extends Object implements AutoCloseable
| Constructor and Description |
|---|
ShardingExecuteEngine(int executorSize) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
<I,O> List<O> |
groupExecute(Collection<ShardingExecuteGroup<I>> inputGroups,
ShardingGroupExecuteCallback<I,O> callback)
Execute for group.
|
<I,O> List<O> |
groupExecute(Collection<ShardingExecuteGroup<I>> inputGroups,
ShardingGroupExecuteCallback<I,O> firstCallback,
ShardingGroupExecuteCallback<I,O> callback,
boolean serial)
Execute for group.
|
public <I,O> List<O> groupExecute(Collection<ShardingExecuteGroup<I>> inputGroups, ShardingGroupExecuteCallback<I,O> callback) throws SQLException
I - type of input valueO - type of return valueinputGroups - input groupscallback - sharding execute callbackSQLException - throw if execute failurepublic <I,O> List<O> groupExecute(Collection<ShardingExecuteGroup<I>> inputGroups, ShardingGroupExecuteCallback<I,O> firstCallback, ShardingGroupExecuteCallback<I,O> callback, boolean serial) throws SQLException
I - type of input valueO - type of return valueinputGroups - input groupsfirstCallback - first sharding execute callbackcallback - sharding execute callbackserial - whether using multi thread execute or notSQLException - throw if execute failurepublic void close()
close in interface AutoCloseableCopyright © 2019 The Apache Software Foundation. All rights reserved.