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
Since:
6.4.0
  • Method Details

    • close

      void close() throws IOException
      Close.
      Throws:
      IOException - the io exception
    • targetDataSource

      DataSource targetDataSource()
      Gets target data source.
      Returns:
      the target data source
    • destroy

      default void destroy() throws Exception
      Specified by:
      destroy in interface org.springframework.beans.factory.DisposableBean
      Throws:
      Exception