Package io.trino.plugin.jdbc
Class LazyConnectionFactory
- java.lang.Object
-
- io.trino.plugin.jdbc.LazyConnectionFactory
-
- All Implemented Interfaces:
ConnectionFactory,AutoCloseable
@ThreadSafe public final class LazyConnectionFactory extends Object implements ConnectionFactory
-
-
Constructor Summary
Constructors Constructor Description LazyConnectionFactory(ConnectionFactory delegate)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()ConnectionopenConnection(ConnectorSession session)
-
-
-
Constructor Detail
-
LazyConnectionFactory
@Inject public LazyConnectionFactory(ConnectionFactory delegate)
-
-
Method Detail
-
openConnection
public Connection openConnection(ConnectorSession session) throws SQLException
- Specified by:
openConnectionin interfaceConnectionFactory- Throws:
SQLException
-
close
public void close() throws SQLException- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceConnectionFactory- Throws:
SQLException
-
-