public class BasicConnectionProvider extends Object implements ConnectionProvider
Constructor and Description |
---|
BasicConnectionProvider() |
Modifier and Type | Method and Description |
---|---|
BaseConnection |
connect(HostSpec hostSpec,
Properties props,
@Nullable String url)
Called once per connection that needs to be created.
|
public BaseConnection connect(HostSpec hostSpec, Properties props, @Nullable String url) throws SQLException
connect
in interface ConnectionProvider
hostSpec
- The HostSpec containing the host-port information for the host to connect toprops
- The Properties to use for the connectionurl
- The connection URLConnection
resulting from the given connection informationSQLException
- if an error occursCopyright © 1997-2021 PostgreSQL Global Development Group. All Rights Reserved.