Package io.trino.plugin.jdbc
Interface ConnectionFactory
-
- All Superinterfaces:
AutoCloseable
- All Known Implementing Classes:
DriverConnectionFactory,RetryingConnectionFactory,StatisticsAwareConnectionFactory
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface ConnectionFactory extends AutoCloseable
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default voidclose()ConnectionopenConnection(ConnectorSession session)
-
-
-
Method Detail
-
openConnection
Connection openConnection(ConnectorSession session) throws SQLException
- Throws:
SQLException
-
close
@PreDestroy default void close() throws SQLException- Specified by:
closein interfaceAutoCloseable- Throws:
SQLException
-
-