Skip to content

Commit 00a6d34

Browse files
committed
Rename internal methods ConnectionPool.minSize() maxSize()
1 parent ffd6cca commit 00a6d34

File tree

2 files changed

+4
-10
lines changed

2 files changed

+4
-10
lines changed

ebean-datasource/src/main/java/io/ebean/datasource/pool/ConnectionPool.java

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -440,17 +440,11 @@ public void setMaxSize(int max) {
440440
this.maxConnections = max;
441441
}
442442

443-
/**
444-
* Return the max size this pool can grow to.
445-
*/
446-
int getMaxSize() {
443+
int maxSize() {
447444
return maxConnections;
448445
}
449446

450-
/**
451-
* Return the min size this pool should maintain.
452-
*/
453-
int getMinSize() {
447+
int minSize() {
454448
return minConnections;
455449
}
456450

ebean-datasource/src/main/java/io/ebean/datasource/pool/PooledConnectionQueue.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,8 @@ final class PooledConnectionQueue {
7070
PooledConnectionQueue(ConnectionPool pool) {
7171
this.pool = pool;
7272
this.name = pool.name();
73-
this.minSize = pool.getMinSize();
74-
this.maxSize = pool.getMaxSize();
73+
this.minSize = pool.minSize();
74+
this.maxSize = pool.maxSize();
7575
this.warningSize = pool.getWarningSize();
7676
this.waitTimeoutMillis = pool.waitTimeoutMillis();
7777
this.leakTimeMinutes = pool.leakTimeMinutes();

0 commit comments

Comments
 (0)