Skip to content

Commit

Permalink
Consistently use Javadoc descriptions for BoundedPoolConfig #1337
Browse files Browse the repository at this point in the history
  • Loading branch information
Volodymyr Khrushchak authored and mp911de committed Jul 9, 2020
1 parent 2c7d0ba commit 485902e
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/main/java/io/lettuce/core/support/BoundedPoolConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,8 @@ public Builder testOnRelease(boolean testOnRelease) {

/**
* Configures the maximum number of objects that can be allocated by the pool (checked out to clients, or idle awaiting
* checkout) at a given time.
* checkout) at a given time. When negative, there is no limit to the number of objects that can be managed by
* the pool at one time.
*
* @param maxTotal maximum number of objects that can be allocated by the pool.
* @return {@code this} {@link Builder}.
Expand Down Expand Up @@ -181,10 +182,10 @@ public Builder maxIdle(int maxIdle) {
}

/**
* Configures the maximum number of objects that can be allocated by the pool (checked out to clients, or idle awaiting
* checkout) at a given time.
* Configures the minimum number of idle objects to maintain in the pool. If this is the case, an attempt is
* made to ensure that the pool has the required minimum number of instances during idle object eviction runs.
*
* @param minIdle maximum number of objects that can be allocated by the pool.
* @param minIdle minimum number of idle objects to maintain in the pool.
* @return {@code this} {@link Builder}.
*/
public Builder minIdle(int minIdle) {
Expand Down

0 comments on commit 485902e

Please sign in to comment.