public class ArrowFlightJdbcConnectionPoolDataSource extends ArrowFlightJdbcDataSource implements ConnectionPoolDataSource, ConnectionEventListener, AutoCloseable
ConnectionPoolDataSource implementation for Arrow Flight JDBC Driver.| Modifier | Constructor and Description |
|---|---|
protected |
ArrowFlightJdbcConnectionPoolDataSource(Properties properties,
ArrowFlightConnectionConfigImpl config)
Instantiates a new DataSource.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
connectionClosed(ConnectionEvent connectionEvent) |
void |
connectionErrorOccurred(ConnectionEvent connectionEvent) |
static ArrowFlightJdbcConnectionPoolDataSource |
createNewDataSource(Properties properties)
Creates a new
ArrowFlightJdbcConnectionPoolDataSource. |
PooledConnection |
getPooledConnection() |
PooledConnection |
getPooledConnection(String username,
String password) |
getConfig, getConnection, getConnection, getLoginTimeout, getLogWriter, getParentLogger, getProperties, isWrapperFor, setLoginTimeout, setLogWriter, unwrapclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetLoginTimeout, getLogWriter, getParentLogger, setLoginTimeout, setLogWriterprotected ArrowFlightJdbcConnectionPoolDataSource(Properties properties, ArrowFlightConnectionConfigImpl config)
properties - the propertiesconfig - the config.public static ArrowFlightJdbcConnectionPoolDataSource createNewDataSource(Properties properties)
ArrowFlightJdbcConnectionPoolDataSource.properties - the properties.public PooledConnection getPooledConnection() throws SQLException
getPooledConnection in interface ConnectionPoolDataSourceSQLExceptionpublic PooledConnection getPooledConnection(String username, String password) throws SQLException
getPooledConnection in interface ConnectionPoolDataSourceSQLExceptionpublic void connectionClosed(ConnectionEvent connectionEvent)
connectionClosed in interface ConnectionEventListenerpublic void connectionErrorOccurred(ConnectionEvent connectionEvent)
connectionErrorOccurred in interface ConnectionEventListenerpublic void close()
throws Exception
close in interface AutoCloseableExceptionCopyright © 2024 The Apache Software Foundation. All rights reserved.