Interface JdbcConfiguration.Builder

All Superinterfaces:
io.debezium.config.Configuration.ConfigBuilder<JdbcConfiguration,JdbcConfiguration.Builder>
Enclosing interface:
JdbcConfiguration

public static interface JdbcConfiguration.Builder extends io.debezium.config.Configuration.ConfigBuilder<JdbcConfiguration,JdbcConfiguration.Builder>
The JDBC-specific builder used to construct and/or alter JDBC configuration instances.
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    withConnectionFactoryClass(String connectionFactoryClass)
    Use the given connection factory class in the resulting configuration.
    withConnectionTimeoutMs(int connectionTimeoutMs)
    Use the given connection timeout in the resulting configuration.
    withDatabase(String databaseName)
    Use the given database name in the resulting configuration.
    withHostname(String hostname)
    Use the given host in the resulting configuration.
    withPassword(String password)
    Use the given password in the resulting configuration.
    withPort(int port)
    Use the given port in the resulting configuration.
    withQueryTimeoutMs(int queryTimeoutMs)
    Use the given query timeout in the resulting configuration.
    withUser(String username)
    Use 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, withDefault, without
  • Method Details

    • withUser

      default JdbcConfiguration.Builder withUser(String username)
      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

      default JdbcConfiguration.Builder withPassword(String password)
      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

      default JdbcConfiguration.Builder withHostname(String hostname)
      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

      default JdbcConfiguration.Builder withDatabase(String databaseName)
      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

      default JdbcConfiguration.Builder withPort(int port)
      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

      default JdbcConfiguration.Builder withConnectionFactoryClass(String connectionFactoryClass)
      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

      default JdbcConfiguration.Builder withConnectionTimeoutMs(int connectionTimeoutMs)
      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

      default JdbcConfiguration.Builder withQueryTimeoutMs(int queryTimeoutMs)
      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