public interface BasicR2dbcProperties
extends io.micronaut.core.naming.Named
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
PREFIX
The prefix for configuration.
|
Modifier and Type | Method and Description |
---|---|
io.r2dbc.spi.ConnectionFactoryOptions.Builder |
builder() |
BasicR2dbcProperties |
setConnectTimeout(java.time.Duration duration)
Sets the connect timeout.
|
BasicR2dbcProperties |
setDatabase(@NotBlank java.lang.String database)
Sets the initial database name.
|
BasicR2dbcProperties |
setDriver(@NotBlank java.lang.String driver)
Sets the driver.
|
BasicR2dbcProperties |
setHost(@NotBlank java.lang.String host)
Sets the host.
|
BasicR2dbcProperties |
setOptions(java.util.Map<java.lang.String,java.lang.String> options)
Sets the connection properties.
|
BasicR2dbcProperties |
setPassword(java.lang.CharSequence password)
Sets the password.
|
BasicR2dbcProperties |
setPort(@Positive int port)
Sets the port.
|
BasicR2dbcProperties |
setProtocol(@NotBlank java.lang.String protocol)
Sets the protocol.
|
BasicR2dbcProperties |
setSsl(boolean ssl)
Sets whether to prefer SSL configuration.
|
BasicR2dbcProperties |
setUsername(@NotBlank java.lang.String username)
Sets the username.
|
static final java.lang.String PREFIX
BasicR2dbcProperties setHost(@NotBlank @NotBlank java.lang.String host)
host
- The hostBasicR2dbcProperties setPort(@Positive @Positive int port)
port
- The portBasicR2dbcProperties setDriver(@NotBlank @NotBlank java.lang.String driver)
driver
- The driverBasicR2dbcProperties setProtocol(@NotBlank @NotBlank java.lang.String protocol)
protocol
- The protocolBasicR2dbcProperties setConnectTimeout(java.time.Duration duration)
duration
- The durationBasicR2dbcProperties setSsl(boolean ssl)
ssl
- Sets whether to prefer SSLBasicR2dbcProperties setUsername(@NotBlank @NotBlank java.lang.String username)
username
- The usernameBasicR2dbcProperties setPassword(java.lang.CharSequence password)
password
- The passwordBasicR2dbcProperties setDatabase(@NotBlank @NotBlank java.lang.String database)
database
- The databaseBasicR2dbcProperties setOptions(@Nullable java.util.Map<java.lang.String,java.lang.String> options)
options
- The options@NonNull io.r2dbc.spi.ConnectionFactoryOptions.Builder builder()