Package io.trino.plugin.jdbc
Class ReusableConnectionFactory
java.lang.Object
io.trino.plugin.jdbc.ReusableConnectionFactory
- All Implemented Interfaces:
ConnectionFactory,JdbcQueryEventListener,AutoCloseable
@ThreadSafe
public final class ReusableConnectionFactory
extends Object
implements ConnectionFactory, JdbcQueryEventListener
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidbeginQuery(ConnectorSession session) voidcleanupQuery(ConnectorSession session) voidclose()openConnection(ConnectorSession session)
-
Constructor Details
-
ReusableConnectionFactory
-
-
Method Details
-
openConnection
- Specified by:
openConnectionin interfaceConnectionFactory- Throws:
SQLException
-
beginQuery
- Specified by:
beginQueryin interfaceJdbcQueryEventListener
-
cleanupQuery
- Specified by:
cleanupQueryin interfaceJdbcQueryEventListener
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceConnectionFactory- Throws:
SQLException
-