Skip to content

Commit

Permalink
Polishing #1337
Browse files Browse the repository at this point in the history
Reformat code. Add javadoc method links.
  • Loading branch information
mp911de committed Jul 9, 2020
1 parent 009f526 commit 9496385
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
3 changes: 3 additions & 0 deletions src/main/java/io/lettuce/core/support/BoundedAsyncPool.java
Original file line number Diff line number Diff line change
Expand Up @@ -394,6 +394,7 @@ public CompletableFuture<Void> closeAsync() {
* one time.
*
* @return the cap on the total number of object instances managed by the pool.
* @see BoundedPoolConfig#getMaxTotal()
*/
public int getMaxTotal() {
return maxTotal;
Expand All @@ -407,6 +408,7 @@ public int getMaxTotal() {
* a good starting point.
*
* @return the maximum number of "idle" instances that can be held in the pool.
* @see BoundedPoolConfig#getMaxIdle()
*/
public int getMaxIdle() {
return maxIdle;
Expand All @@ -420,6 +422,7 @@ public int getMaxIdle() {
* {@code maxIdle} will be used instead.
*
* @return The minimum number of objects.
* @see BoundedPoolConfig#getMinIdle()
*/
public int getMinIdle() {

Expand Down
8 changes: 4 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,8 +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. When negative, there is no limit to the number of objects that can be managed by
* the pool at one 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 @@ -182,8 +182,8 @@ public Builder maxIdle(int maxIdle) {
}

/**
* 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.
* 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 minimum number of idle objects to maintain in the pool.
* @return {@code this} {@link Builder}.
Expand Down

0 comments on commit 9496385

Please sign in to comment.