Interface CloseableDataSource
- All Superinterfaces:
CommonDataSource,DataSource,org.springframework.beans.factory.DisposableBean,Wrapper
- All Known Implementing Classes:
DefaultCloseableDataSource
public interface CloseableDataSource
extends DataSource, org.springframework.beans.factory.DisposableBean
This is
CloseableDataSource.- Since:
- 6.4.0
-
Method Summary
Methods inherited from interface javax.sql.CommonDataSource
createShardingKeyBuilder, getParentLoggerMethods inherited from interface javax.sql.DataSource
createConnectionBuilder, getConnection, getConnection, getLoginTimeout, getLogWriter, setLoginTimeout, setLogWriterMethods inherited from interface java.sql.Wrapper
isWrapperFor, unwrap
-
Method Details
-
close
Close.- Throws:
IOException- the io exception
-
targetDataSource
DataSource targetDataSource()Gets target data source.- Returns:
- the target data source
-
destroy
- Specified by:
destroyin interfaceorg.springframework.beans.factory.DisposableBean- Throws:
Exception
-