|
|
|
|
@ -1,5 +1,5 @@
@@ -1,5 +1,5 @@
|
|
|
|
|
/* |
|
|
|
|
* Copyright 2012-2021 the original author or authors. |
|
|
|
|
* Copyright 2012-2023 the original author or authors. |
|
|
|
|
* |
|
|
|
|
* Licensed under the Apache License, Version 2.0 (the "License"); |
|
|
|
|
* you may not use this file except in compliance with the License. |
|
|
|
|
@ -136,6 +136,13 @@ public class R2dbcProperties {
@@ -136,6 +136,13 @@ public class R2dbcProperties {
|
|
|
|
|
|
|
|
|
|
public static class Pool { |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* Minimal number of idle connections. |
|
|
|
|
* |
|
|
|
|
* @since 2.7.12 |
|
|
|
|
*/ |
|
|
|
|
private int minIdle = 0; |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* Maximum amount of time that a connection is allowed to sit idle in the pool. |
|
|
|
|
*/ |
|
|
|
|
@ -153,6 +160,14 @@ public class R2dbcProperties {
@@ -153,6 +160,14 @@ public class R2dbcProperties {
|
|
|
|
|
*/ |
|
|
|
|
private Duration maxAcquireTime; |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* Maximum time to validate a connection from the pool. By default, wait |
|
|
|
|
* indefinitely. |
|
|
|
|
* |
|
|
|
|
* @since 2.7.12 |
|
|
|
|
*/ |
|
|
|
|
private Duration maxValidationTime; |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* Maximum time to wait to create a new connection. By default, wait indefinitely. |
|
|
|
|
*/ |
|
|
|
|
@ -183,6 +198,14 @@ public class R2dbcProperties {
@@ -183,6 +198,14 @@ public class R2dbcProperties {
|
|
|
|
|
*/ |
|
|
|
|
private boolean enabled = true; |
|
|
|
|
|
|
|
|
|
public int getMinIdle() { |
|
|
|
|
return this.minIdle; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public void setMinIdle(int minIdle) { |
|
|
|
|
this.minIdle = minIdle; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public Duration getMaxIdleTime() { |
|
|
|
|
return this.maxIdleTime; |
|
|
|
|
} |
|
|
|
|
@ -199,6 +222,14 @@ public class R2dbcProperties {
@@ -199,6 +222,14 @@ public class R2dbcProperties {
|
|
|
|
|
this.maxLifeTime = maxLifeTime; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public Duration getMaxValidationTime() { |
|
|
|
|
return this.maxValidationTime; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public void setMaxValidationTime(Duration maxValidationTime) { |
|
|
|
|
this.maxValidationTime = maxValidationTime; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public Duration getMaxAcquireTime() { |
|
|
|
|
return this.maxAcquireTime; |
|
|
|
|
} |
|
|
|
|
|