Skip to content

Commit

Permalink
Upgrade to R2DBC Pool 1.0.0.RELEASE
Browse files Browse the repository at this point in the history
Closes gh-33196
  • Loading branch information
snicoll committed Nov 15, 2022
1 parent bf7576d commit fc17171
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion spring-boot-project/spring-boot-dependencies/build.gradle
Expand Up @@ -1108,7 +1108,7 @@ bom {
]
}
}
library("R2DBC Pool", "1.0.0.RC1") {
library("R2DBC Pool", "1.0.0.RELEASE") {
group("io.r2dbc") {
modules = [
"r2dbc-pool"
Expand Down
Expand Up @@ -244,6 +244,8 @@ ConnectionPoolConfiguration connectionPoolConfiguration(ConnectionFactoryOptions
.to(builder::maxIdleTime);
map.from(options.getValue(PoolingConnectionFactoryProvider.MAX_CREATE_CONNECTION_TIME)).as(this::toDuration)
.to(builder::maxCreateConnectionTime);
map.from(options.getValue(PoolingConnectionFactoryProvider.MAX_VALIDATION_TIME)).as(this::toDuration)
.to(builder::maxValidationTime);
map.from(options.getValue(PoolingConnectionFactoryProvider.MIN_IDLE)).as(this::toInteger)
.to(builder::minIdle);
map.from(options.getValue(PoolingConnectionFactoryProvider.POOL_NAME)).as(this::toString).to(builder::name);
Expand Down
Expand Up @@ -265,6 +265,9 @@ private enum ExpectedOption {
MAX_CREATE_CONNECTION_TIME(PoolingConnectionFactoryProvider.MAX_CREATE_CONNECTION_TIME, Duration.ofSeconds(10),
"maxCreateConnectionTime"),

MAX_VALIDATION_TIME(PoolingConnectionFactoryProvider.MAX_VALIDATION_TIME, Duration.ofMinutes(4),
"maxValidationTime"),

MIN_IDLE(PoolingConnectionFactoryProvider.MIN_IDLE, 5, "minIdle"),

POOL_NAME(PoolingConnectionFactoryProvider.POOL_NAME, "testPool", "name"),
Expand Down

0 comments on commit fc17171

Please sign in to comment.