public final class ShardingExecuteEngine extends Object implements AutoCloseable
| 构造器和说明 |
|---|
ShardingExecuteEngine(int executorSize) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
close() |
<I,O> List<O> |
execute(Collection<I> inputs,
ShardingExecuteCallback<I,O> callback)
Execute.
|
<I,O> List<O> |
execute(Collection<I> inputs,
ShardingExecuteCallback<I,O> firstCallback,
ShardingExecuteCallback<I,O> callback)
Execute.
|
<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)
Execute for group.
|
public <I,O> List<O> execute(Collection<I> inputs, ShardingExecuteCallback<I,O> callback) throws SQLException
I - type of input valueO - type of return valueinputs - input valuescallback - sharding execute callbackSQLException - throw if execute failurepublic <I,O> List<O> execute(Collection<I> inputs, ShardingExecuteCallback<I,O> firstCallback, ShardingExecuteCallback<I,O> callback) throws SQLException
I - type of input valueO - type of return valueinputs - input valuesfirstCallback - first sharding execute callbackcallback - sharding execute callbackSQLException - throw if execute failurepublic <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) throws SQLException
I - type of input valueO - type of return valueinputGroups - input groupscallback - sharding execute callbackfirstCallback - first sharding execute callbackSQLException - throw if execute failurepublic void close()
close 在接口中 AutoCloseableCopyright © 2019. All rights reserved.