public static class JdbcConnectionOptions.JdbcConnectionOptionsBuilder extends Object
JdbcConnectionOptions
.Constructor and Description |
---|
JdbcConnectionOptionsBuilder() |
Modifier and Type | Method and Description |
---|---|
JdbcConnectionOptions |
build() |
JdbcConnectionOptions.JdbcConnectionOptionsBuilder |
withConnectionCheckTimeoutSeconds(int connectionCheckTimeoutSeconds)
Set the maximum timeout between retries, default is 60 seconds.
|
JdbcConnectionOptions.JdbcConnectionOptionsBuilder |
withDriverName(String driverName) |
JdbcConnectionOptions.JdbcConnectionOptionsBuilder |
withPassword(String password) |
JdbcConnectionOptions.JdbcConnectionOptionsBuilder |
withUrl(String url) |
JdbcConnectionOptions.JdbcConnectionOptionsBuilder |
withUsername(String username) |
public JdbcConnectionOptions.JdbcConnectionOptionsBuilder withUrl(String url)
public JdbcConnectionOptions.JdbcConnectionOptionsBuilder withDriverName(String driverName)
public JdbcConnectionOptions.JdbcConnectionOptionsBuilder withUsername(String username)
public JdbcConnectionOptions.JdbcConnectionOptionsBuilder withPassword(String password)
public JdbcConnectionOptions.JdbcConnectionOptionsBuilder withConnectionCheckTimeoutSeconds(int connectionCheckTimeoutSeconds)
connectionCheckTimeoutSeconds
- the timeout seconds, shouldn't smaller than 1
second.public JdbcConnectionOptions build()
Copyright © 2014–2022 The Apache Software Foundation. All rights reserved.