Interface BasicR2dbcProperties

All Superinterfaces:
io.micronaut.core.naming.Named
All Known Implementing Classes:
DefaultBasicR2dbcProperties

public interface BasicR2dbcProperties extends io.micronaut.core.naming.Named
An interface to model configuring basic R2DBC properties.
Since:
1.0.0
Author:
graemerocher
  • Field Details

  • Method Details

    • setHost

      BasicR2dbcProperties setHost(@NotBlank @NotBlank String host)
      Sets the host.
      Parameters:
      host - The host
      Returns:
      These properties
    • setPort

      BasicR2dbcProperties setPort(@Positive @jakarta.validation.constraints.Positive int port)
      Sets the port.
      Parameters:
      port - The port
      Returns:
      These properties
    • setDriver

      BasicR2dbcProperties setDriver(@NotBlank @NotBlank String driver)
      Sets the driver.
      Parameters:
      driver - The driver
      Returns:
      These properties
    • setProtocol

      BasicR2dbcProperties setProtocol(@NotBlank @NotBlank String protocol)
      Sets the protocol.
      Parameters:
      protocol - The protocol
      Returns:
      These properties
    • setConnectTimeout

      BasicR2dbcProperties setConnectTimeout(Duration duration)
      Sets the connect timeout.
      Parameters:
      duration - The duration
      Returns:
      These properties
    • setSsl

      BasicR2dbcProperties setSsl(boolean ssl)
      Sets whether to prefer SSL configuration.
      Parameters:
      ssl - Sets whether to prefer SSL
      Returns:
      These properties
    • setUsername

      BasicR2dbcProperties setUsername(@NotBlank @NotBlank String username)
      Sets the username.
      Parameters:
      username - The username
      Returns:
      These properties
    • setPassword

      BasicR2dbcProperties setPassword(CharSequence password)
      Sets the password.
      Parameters:
      password - The password
      Returns:
      These properties
    • setDatabase

      BasicR2dbcProperties setDatabase(@NotBlank @NotBlank String database)
      Sets the initial database name.
      Parameters:
      database - The database
      Returns:
      These properties
    • setOptions

      BasicR2dbcProperties setOptions(@Nullable @Nullable Map<String,String> options)
      Sets the connection properties.
      Parameters:
      options - The options
      Returns:
      These properties
    • builder

      @NonNull io.r2dbc.spi.ConnectionFactoryOptions.Builder builder()
      Returns:
      Return the current builder