This is an automated email from the ASF dual-hosted git repository. ggregory pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/commons-pool.git
commit b0c30a7c6be57a0c4b52bf69133d5ea87bbd4f07 Author: Gary Gregory <gardgreg...@gmail.com> AuthorDate: Thu Jun 3 09:37:57 2021 -0400 Javadoc. --- .../java/org/apache/commons/pool2/impl/BaseObjectPoolConfig.java | 8 ++++---- src/main/java/org/apache/commons/pool2/impl/EvictionConfig.java | 4 ++-- .../org/apache/commons/pool2/impl/GenericKeyedObjectPool.java | 5 ++--- .../java/org/apache/commons/pool2/impl/GenericObjectPool.java | 9 ++++----- 4 files changed, 12 insertions(+), 14 deletions(-) diff --git a/src/main/java/org/apache/commons/pool2/impl/BaseObjectPoolConfig.java b/src/main/java/org/apache/commons/pool2/impl/BaseObjectPoolConfig.java index b6857b0..44bf442 100644 --- a/src/main/java/org/apache/commons/pool2/impl/BaseObjectPoolConfig.java +++ b/src/main/java/org/apache/commons/pool2/impl/BaseObjectPoolConfig.java @@ -76,8 +76,8 @@ public abstract class BaseObjectPoolConfig<T> extends BaseObject implements Clon /** * The default value for the {@code minEvictableIdleTime} * configuration attribute. - * @see GenericObjectPool#getMinEvictableIdleTimeMillis() - * @see GenericKeyedObjectPool#getMinEvictableIdleTimeMillis() + * @see GenericObjectPool#getMinEvictableIdleTime() + * @see GenericKeyedObjectPool#getMinEvictableIdleTime() * @since 2.10.0 */ public static final Duration DEFAULT_MIN_EVICTABLE_IDLE_TIME = @@ -174,8 +174,8 @@ public abstract class BaseObjectPoolConfig<T> extends BaseObject implements Clon /** * The default value for the {@code timeBetweenEvictionRuns} * configuration attribute. - * @see GenericObjectPool#getTimeBetweenEvictionRunsMillis() - * @see GenericKeyedObjectPool#getTimeBetweenEvictionRunsMillis() + * @see GenericObjectPool#getTimeBetweenEvictionRuns() + * @see GenericKeyedObjectPool#getTimeBetweenEvictionRuns() */ public static final Duration DEFAULT_TIME_BETWEEN_EVICTION_RUNS = Duration.ofMillis(DEFAULT_TIME_BETWEEN_EVICTION_RUNS_MILLIS); diff --git a/src/main/java/org/apache/commons/pool2/impl/EvictionConfig.java b/src/main/java/org/apache/commons/pool2/impl/EvictionConfig.java index 3f11b4c..f8788b8 100644 --- a/src/main/java/org/apache/commons/pool2/impl/EvictionConfig.java +++ b/src/main/java/org/apache/commons/pool2/impl/EvictionConfig.java @@ -40,9 +40,9 @@ public class EvictionConfig { * Instances are immutable. * * @param poolIdleEvictTime Expected to be provided by - * {@link BaseGenericObjectPool#getMinEvictableIdleTimeMillis()} + * {@link BaseGenericObjectPool#getMinEvictableIdleTime()} * @param poolIdleSoftEvictTime Expected to be provided by - * {@link BaseGenericObjectPool#getSoftMinEvictableIdleTimeMillis()} + * {@link BaseGenericObjectPool#getSoftMinEvictableIdleTime()} * @param minIdle Expected to be provided by * {@link GenericObjectPool#getMinIdle()} or * {@link GenericKeyedObjectPool#getMinIdlePerKey()} diff --git a/src/main/java/org/apache/commons/pool2/impl/GenericKeyedObjectPool.java b/src/main/java/org/apache/commons/pool2/impl/GenericKeyedObjectPool.java index 307db1e..2cc62a7 100644 --- a/src/main/java/org/apache/commons/pool2/impl/GenericKeyedObjectPool.java +++ b/src/main/java/org/apache/commons/pool2/impl/GenericKeyedObjectPool.java @@ -1131,7 +1131,7 @@ public class GenericKeyedObjectPool<K, T> extends BaseGenericObjectPool<T> /** * Gets the target for the minimum number of idle objects to maintain in * each of the keyed sub-pools. This setting only has an effect if it is - * positive and {@link #getTimeBetweenEvictionRunsMillis()} is greater than + * positive and {@link #getTimeBetweenEvictionRuns()} is greater than * zero. If this is the case, an attempt is made to ensure that each * sub-pool has the required minimum number of instances during idle object * eviction runs. @@ -1332,7 +1332,6 @@ public class GenericKeyedObjectPool<K, T> extends BaseGenericObjectPool<T> * @return The abandoned object timeout in seconds if abandoned object * removal is configured for this pool; Integer.MAX_VALUE otherwise. * - * @see AbandonedConfig#getRemoveAbandonedTimeout() * @see AbandonedConfig#getRemoveAbandonedTimeoutDuration() * @since 2.10.0 */ @@ -1781,7 +1780,7 @@ public class GenericKeyedObjectPool<K, T> extends BaseGenericObjectPool<T> /** * Sets the target for the minimum number of idle objects to maintain in * each of the keyed sub-pools. This setting only has an effect if it is - * positive and {@link #getTimeBetweenEvictionRunsMillis()} is greater than + * positive and {@link #getTimeBetweenEvictionRuns()} is greater than * zero. If this is the case, an attempt is made to ensure that each * sub-pool has the required minimum number of instances during idle object * eviction runs. diff --git a/src/main/java/org/apache/commons/pool2/impl/GenericObjectPool.java b/src/main/java/org/apache/commons/pool2/impl/GenericObjectPool.java index e39f34f..c97d281 100644 --- a/src/main/java/org/apache/commons/pool2/impl/GenericObjectPool.java +++ b/src/main/java/org/apache/commons/pool2/impl/GenericObjectPool.java @@ -829,7 +829,7 @@ public class GenericObjectPool<T> extends BaseGenericObjectPool<T> /** * Gets the target for the minimum number of idle objects to maintain in * the pool. This setting only has an effect if it is positive and - * {@link #getTimeBetweenEvictionRunsMillis()} is greater than zero. If this + * {@link #getTimeBetweenEvictionRuns()} is greater than zero. 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. * <p> @@ -841,7 +841,7 @@ public class GenericObjectPool<T> extends BaseGenericObjectPool<T> * * @see #setMinIdle(int) * @see #setMaxIdle(int) - * @see #setTimeBetweenEvictionRunsMillis(long) + * @see #setTimeBetweenEvictionRuns(Duration) */ @Override public int getMinIdle() { @@ -953,7 +953,6 @@ public class GenericObjectPool<T> extends BaseGenericObjectPool<T> * @return The abandoned object timeout in seconds if abandoned object * removal is configured for this pool; Integer.MAX_VALUE otherwise. * - * @see AbandonedConfig#getRemoveAbandonedTimeout() * @see AbandonedConfig#getRemoveAbandonedTimeoutDuration() */ public Duration getRemoveAbandonedTimeoutDuration() { @@ -1248,7 +1247,7 @@ public class GenericObjectPool<T> extends BaseGenericObjectPool<T> /** * Sets the target for the minimum number of idle objects to maintain in * the pool. This setting only has an effect if it is positive and - * {@link #getTimeBetweenEvictionRunsMillis()} is greater than zero. If this + * {@link #getTimeBetweenEvictionRuns()} is greater than zero. 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. * <p> @@ -1261,7 +1260,7 @@ public class GenericObjectPool<T> extends BaseGenericObjectPool<T> * * @see #getMinIdle() * @see #getMaxIdle() - * @see #getTimeBetweenEvictionRunsMillis() + * @see #getTimeBetweenEvictionRuns() */ public void setMinIdle(final int minIdle) { this.minIdle = minIdle;