public interface SQLExecutionHook
| Modifier and Type | Method and Description |
|---|---|
void |
finishFailure(Exception cause)
Handle when SQL execution finished failure.
|
void |
finishSuccess()
Handle when SQL execution finished success.
|
void |
start(RouteUnit routeUnit,
org.apache.shardingsphere.core.metadata.datasource.DataSourceMetaData dataSourceMetaData,
boolean isTrunkThread,
Map<String,Object> shardingExecuteDataMap)
Handle when SQL execution started.
|
void start(RouteUnit routeUnit, org.apache.shardingsphere.core.metadata.datasource.DataSourceMetaData dataSourceMetaData, boolean isTrunkThread, Map<String,Object> shardingExecuteDataMap)
routeUnit - route unit to be executeddataSourceMetaData - data source meta dataisTrunkThread - is execution in trunk threadshardingExecuteDataMap - sharding execute data mapvoid finishSuccess()
void finishFailure(Exception cause)
cause - failure causeCopyright © 2019 The Apache Software Foundation. All rights reserved.