public final class TrafficExecutor extends Object implements AutoCloseable
| 构造器和说明 |
|---|
TrafficExecutor() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
close() |
<T> T |
execute(org.apache.shardingsphere.infra.executor.sql.execute.engine.driver.jdbc.JDBCExecutionUnit executionUnit,
TrafficExecutorCallback<T> callback)
Execute.
|
ResultSet |
getResultSet()
Get result set.
|
public <T> T execute(org.apache.shardingsphere.infra.executor.sql.execute.engine.driver.jdbc.JDBCExecutionUnit executionUnit,
TrafficExecutorCallback<T> callback)
throws SQLException
T - return typeexecutionUnit - execution unitcallback - traffic executor callbackSQLException - SQL exceptionpublic ResultSet getResultSet() throws SQLException
SQLException - SQL exceptionpublic void close()
throws SQLException
close 在接口中 AutoCloseableSQLExceptionCopyright © 2022 The Apache Software Foundation. All rights reserved.