Package io.debezium.jdbc
Interface JdbcConfiguration.Builder
- All Superinterfaces:
Configuration.ConfigBuilder<JdbcConfiguration,JdbcConfiguration.Builder>
- Enclosing interface:
- JdbcConfiguration
public static interface JdbcConfiguration.Builder
extends Configuration.ConfigBuilder<JdbcConfiguration,JdbcConfiguration.Builder>
The JDBC-specific builder used to construct and/or alter JDBC configuration instances.
-
Method Summary
Modifier and TypeMethodDescriptiondefault JdbcConfiguration.BuilderwithConnectionFactoryClass(String connectionFactoryClass) Use the given connection factory class in the resulting configuration.default JdbcConfiguration.BuilderwithConnectionTimeoutMs(int connectionTimeoutMs) Use the given connection timeout in the resulting configuration.default JdbcConfiguration.BuilderwithDatabase(String databaseName) Use the given database name in the resulting configuration.default JdbcConfiguration.BuilderwithHostname(String hostname) Use the given host in the resulting configuration.default JdbcConfiguration.BuilderwithPassword(String password) Use the given password in the resulting configuration.default JdbcConfiguration.BuilderwithPort(int port) Use the given port in the resulting configuration.default JdbcConfiguration.BuilderwithQueryTimeoutMs(int queryTimeoutMs) Use the given query timeout in the resulting configuration.default JdbcConfiguration.BuilderUse the given user in the resulting configuration.Methods inherited from interface io.debezium.config.Configuration.ConfigBuilder
apply, build, changeBoolean, changeBoolean, changeDouble, changeDouble, changeFloat, changeFloat, changeInteger, changeInteger, changeLong, changeLong, changeString, changeString, with, with, with, with, with, with, with, with, with, with, with, with, with, with, with, with, with, with, with, withDefault, withDefault, withDefault, withDefault, withDefault, withDefault, withDefault, withDefault, withDefault, withDefault, withDefault, withDefault, withDefault, withDefault, withDefault, withDefault, withDefault, withDefault, without
-
Method Details
-
withUser
Use the given user in the resulting configuration.- Parameters:
username- the name of the user- Returns:
- this builder object so methods can be chained together; never null
-
withPassword
Use the given password in the resulting configuration.- Parameters:
password- the password- Returns:
- this builder object so methods can be chained together; never null
-
withHostname
Use the given host in the resulting configuration.- Parameters:
hostname- the hostname- Returns:
- this builder object so methods can be chained together; never null
-
withDatabase
Use the given database name in the resulting configuration.- Parameters:
databaseName- the name of the database- Returns:
- this builder object so methods can be chained together; never null
-
withPort
Use the given port in the resulting configuration.- Parameters:
port- the port- Returns:
- this builder object so methods can be chained together; never null
-
withConnectionFactoryClass
Use the given connection factory class in the resulting configuration.- Parameters:
connectionFactoryClass- the connection factory class name- Returns:
- this builder object so methods can be chained together; never null
-
withConnectionTimeoutMs
Use the given connection timeout in the resulting configuration.- Parameters:
connectionTimeoutMs- connection timeout in ms- Returns:
- this builder object so methods can be chained together; never null
-
withQueryTimeoutMs
Use the given query timeout in the resulting configuration.- Parameters:
queryTimeoutMs- query timeout in ms- Returns:
- this builder object so methods can be chained together; never null
-