Package io.micronaut.r2dbc
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 Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionio.r2dbc.spi.ConnectionFactoryOptions.Builderbuilder()setConnectTimeout(Duration duration) Sets the connect timeout.setDatabase(@NotBlank String database) Sets the initial database name.Sets the driver.Sets the host.setOptions(@Nullable Map<String, String> options) Sets the connection properties.setPassword(CharSequence password) Sets the password.setPort(@jakarta.validation.constraints.Positive int port) Sets the port.setProtocol(@NotBlank String protocol) Sets the protocol.setSsl(boolean ssl) Sets whether to prefer SSL configuration.setUsername(@NotBlank String username) Sets the username.Methods inherited from interface io.micronaut.core.naming.Named
getName
-
Field Details
-
PREFIX
The prefix for configuration.- See Also:
-
-
Method Details
-
setHost
Sets the host.- Parameters:
host- The host- Returns:
- These properties
-
setPort
Sets the port.- Parameters:
port- The port- Returns:
- These properties
-
setDriver
Sets the driver.- Parameters:
driver- The driver- Returns:
- These properties
-
setProtocol
Sets the protocol.- Parameters:
protocol- The protocol- Returns:
- These properties
-
setConnectTimeout
Sets the connect timeout.- Parameters:
duration- The duration- Returns:
- These properties
-
setSsl
Sets whether to prefer SSL configuration.- Parameters:
ssl- Sets whether to prefer SSL- Returns:
- These properties
-
setUsername
Sets the username.- Parameters:
username- The username- Returns:
- These properties
-
setPassword
Sets the password.- Parameters:
password- The password- Returns:
- These properties
-
setDatabase
Sets the initial database name.- Parameters:
database- The database- Returns:
- These properties
-
setOptions
Sets the connection properties.- Parameters:
options- The options- Returns:
- These properties
-
builder
@NonNull io.r2dbc.spi.ConnectionFactoryOptions.Builder builder()- Returns:
- Return the current builder
-