diff --git a/src/main/java/io/lettuce/core/support/BoundedAsyncPool.java b/src/main/java/io/lettuce/core/support/BoundedAsyncPool.java index d1ea128884..1d4ae106fc 100644 --- a/src/main/java/io/lettuce/core/support/BoundedAsyncPool.java +++ b/src/main/java/io/lettuce/core/support/BoundedAsyncPool.java @@ -394,6 +394,7 @@ public CompletableFuture 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; @@ -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; @@ -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() { diff --git a/src/main/java/io/lettuce/core/support/BoundedPoolConfig.java b/src/main/java/io/lettuce/core/support/BoundedPoolConfig.java index d14582d4b2..12cf62f2a8 100644 --- a/src/main/java/io/lettuce/core/support/BoundedPoolConfig.java +++ b/src/main/java/io/lettuce/core/support/BoundedPoolConfig.java @@ -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}. @@ -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}.