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, unwrap
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getLoginTimeout, getLogWriter, getParentLogger, setLoginTimeout, setLogWriter
protected 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 ConnectionPoolDataSource
SQLException
public PooledConnection getPooledConnection(String username, String password) throws SQLException
getPooledConnection
in interface ConnectionPoolDataSource
SQLException
public void connectionClosed(ConnectionEvent connectionEvent)
connectionClosed
in interface ConnectionEventListener
public void connectionErrorOccurred(ConnectionEvent connectionEvent)
connectionErrorOccurred
in interface ConnectionEventListener
public void close() throws Exception
close
in interface AutoCloseable
Exception
Copyright © 2023 The Apache Software Foundation. All rights reserved.