public final class TrafficExecutor extends Object implements AutoCloseable
| Constructor and Description |
|---|
TrafficExecutor() |
| Modifier and Type | Method and Description |
|---|---|
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 in interface AutoCloseableSQLExceptionCopyright © 2022 The Apache Software Foundation. All rights reserved.