Interface CloseableDataSource
-
- All Superinterfaces:
javax.sql.CommonDataSource,javax.sql.DataSource,org.springframework.beans.factory.DisposableBean,java.sql.Wrapper
- All Known Implementing Classes:
DefaultCloseableDataSource
public interface CloseableDataSource extends javax.sql.DataSource, org.springframework.beans.factory.DisposableBeanThis isCloseableDataSource.- Since:
- 6.4.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description voidclose()Close.default voiddestroy()javax.sql.DataSourcegetTargetDataSource()Gets target data source.-
Methods inherited from interface javax.sql.CommonDataSource
createShardingKeyBuilder, getParentLogger
-
-
-
-
Method Detail
-
close
void close() throws java.io.IOExceptionClose.- Throws:
java.io.IOException- the io exception
-
getTargetDataSource
javax.sql.DataSource getTargetDataSource()
Gets target data source.- Returns:
- the target data source
-
destroy
default void destroy() throws java.lang.Exception- Specified by:
destroyin interfaceorg.springframework.beans.factory.DisposableBean- Throws:
java.lang.Exception
-
-