Package org.apache.arrow.driver.jdbc
Class ArrowFlightJdbcConnectionPoolDataSource
java.lang.Object
org.apache.arrow.driver.jdbc.ArrowFlightJdbcDataSource
org.apache.arrow.driver.jdbc.ArrowFlightJdbcConnectionPoolDataSource
- All Implemented Interfaces:
AutoCloseable
,Wrapper
,EventListener
,CommonDataSource
,ConnectionEventListener
,ConnectionPoolDataSource
,DataSource
public class ArrowFlightJdbcConnectionPoolDataSource
extends ArrowFlightJdbcDataSource
implements ConnectionPoolDataSource, ConnectionEventListener, AutoCloseable
ConnectionPoolDataSource
implementation for Arrow Flight JDBC Driver.-
Constructor Summary
ModifierConstructorDescriptionprotected
ArrowFlightJdbcConnectionPoolDataSource
(Properties properties, ArrowFlightConnectionConfigImpl config) Instantiates a new DataSource. -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
void
connectionClosed
(ConnectionEvent connectionEvent) void
connectionErrorOccurred
(ConnectionEvent connectionEvent) createNewDataSource
(Properties properties) Creates a newArrowFlightJdbcConnectionPoolDataSource
.getPooledConnection
(String username, String password) Methods inherited from class org.apache.arrow.driver.jdbc.ArrowFlightJdbcDataSource
getConfig, getConnection, getConnection, getLoginTimeout, getLogWriter, getParentLogger, getProperties, isWrapperFor, setLoginTimeout, setLogWriter, unwrap
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface javax.sql.CommonDataSource
createShardingKeyBuilder, getParentLogger
Methods inherited from interface javax.sql.ConnectionPoolDataSource
createPooledConnectionBuilder, getLoginTimeout, getLogWriter, setLoginTimeout, setLogWriter
Methods inherited from interface javax.sql.DataSource
createConnectionBuilder
-
Constructor Details
-
ArrowFlightJdbcConnectionPoolDataSource
protected ArrowFlightJdbcConnectionPoolDataSource(Properties properties, ArrowFlightConnectionConfigImpl config) Instantiates a new DataSource.- Parameters:
properties
- the propertiesconfig
- the config.
-
-
Method Details
-
createNewDataSource
Creates a newArrowFlightJdbcConnectionPoolDataSource
.- Parameters:
properties
- the properties.- Returns:
- a new data source.
-
getPooledConnection
- Specified by:
getPooledConnection
in interfaceConnectionPoolDataSource
- Throws:
SQLException
-
getPooledConnection
- Specified by:
getPooledConnection
in interfaceConnectionPoolDataSource
- Throws:
SQLException
-
connectionClosed
- Specified by:
connectionClosed
in interfaceConnectionEventListener
-
connectionErrorOccurred
- Specified by:
connectionErrorOccurred
in interfaceConnectionEventListener
-
close
- Specified by:
close
in interfaceAutoCloseable
- Throws:
Exception
-