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.
See Also:
  • 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