Upgrade to R2DBC Pool 1.0.0.RELEASE

Closes gh-33196
This commit is contained in:
Stephane Nicoll 2022-11-15 13:56:14 +01:00
parent bf7576daaf
commit fc17171be6
3 changed files with 6 additions and 1 deletions

View File

@ -1108,7 +1108,7 @@ bom {
] ]
} }
} }
library("R2DBC Pool", "1.0.0.RC1") { library("R2DBC Pool", "1.0.0.RELEASE") {
group("io.r2dbc") { group("io.r2dbc") {
modules = [ modules = [
"r2dbc-pool" "r2dbc-pool"

View File

@ -244,6 +244,8 @@ public final class ConnectionFactoryBuilder {
.to(builder::maxIdleTime); .to(builder::maxIdleTime);
map.from(options.getValue(PoolingConnectionFactoryProvider.MAX_CREATE_CONNECTION_TIME)).as(this::toDuration) map.from(options.getValue(PoolingConnectionFactoryProvider.MAX_CREATE_CONNECTION_TIME)).as(this::toDuration)
.to(builder::maxCreateConnectionTime); .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) map.from(options.getValue(PoolingConnectionFactoryProvider.MIN_IDLE)).as(this::toInteger)
.to(builder::minIdle); .to(builder::minIdle);
map.from(options.getValue(PoolingConnectionFactoryProvider.POOL_NAME)).as(this::toString).to(builder::name); map.from(options.getValue(PoolingConnectionFactoryProvider.POOL_NAME)).as(this::toString).to(builder::name);

View File

@ -265,6 +265,9 @@ class ConnectionFactoryBuilderTests {
MAX_CREATE_CONNECTION_TIME(PoolingConnectionFactoryProvider.MAX_CREATE_CONNECTION_TIME, Duration.ofSeconds(10), MAX_CREATE_CONNECTION_TIME(PoolingConnectionFactoryProvider.MAX_CREATE_CONNECTION_TIME, Duration.ofSeconds(10),
"maxCreateConnectionTime"), "maxCreateConnectionTime"),
MAX_VALIDATION_TIME(PoolingConnectionFactoryProvider.MAX_VALIDATION_TIME, Duration.ofMinutes(4),
"maxValidationTime"),
MIN_IDLE(PoolingConnectionFactoryProvider.MIN_IDLE, 5, "minIdle"), MIN_IDLE(PoolingConnectionFactoryProvider.MIN_IDLE, 5, "minIdle"),
POOL_NAME(PoolingConnectionFactoryProvider.POOL_NAME, "testPool", "name"), POOL_NAME(PoolingConnectionFactoryProvider.POOL_NAME, "testPool", "name"),