Skip to content
Permalink
Browse files
Rename new method.
  • Loading branch information
garydgregory committed Aug 8, 2021
1 parent 5eef5be commit 18fe4f6ab6b275d9c54655e70710adffc6dd33e4
Showing 1 changed file with 5 additions and 5 deletions.
@@ -741,11 +741,11 @@ public void setEvictionPolicyClassName(final String evictionPolicyClassName) {
* @see GenericObjectPool#getEvictorShutdownTimeoutDuration()
* @see GenericKeyedObjectPool#getEvictorShutdownTimeoutDuration()
* @since 2.10.0
* @deprecated Use {@link #setEvictorShutdownTimeoutDuration(Duration)}.
* @deprecated Use {@link #setEvictorShutdownTimeout(Duration)}.
*/
@Deprecated
public void setEvictorShutdownTimeoutMillis(final Duration evictorShutdownTimeout) {
setEvictorShutdownTimeoutDuration(evictorShutdownTimeout);
setEvictorShutdownTimeout(evictorShutdownTimeout);
}

/**
@@ -760,7 +760,7 @@ public void setEvictorShutdownTimeoutMillis(final Duration evictorShutdownTimeou
* @see GenericKeyedObjectPool#getEvictorShutdownTimeoutDuration()
* @since 2.11.0
*/
public void setEvictorShutdownTimeoutDuration(final Duration evictorShutdownTimeoutDuration) {
public void setEvictorShutdownTimeout(final Duration evictorShutdownTimeoutDuration) {
this.evictorShutdownTimeoutDuration = PoolImplUtils.nonNull(evictorShutdownTimeoutDuration, DEFAULT_EVICTOR_SHUTDOWN_TIMEOUT);
}

@@ -774,11 +774,11 @@ public void setEvictorShutdownTimeoutDuration(final Duration evictorShutdownTime
*
* @see GenericObjectPool#getEvictorShutdownTimeoutDuration()
* @see GenericKeyedObjectPool#getEvictorShutdownTimeoutDuration()
* @deprecated Use {@link #setEvictorShutdownTimeoutDuration(Duration)}.
* @deprecated Use {@link #setEvictorShutdownTimeout(Duration)}.
*/
@Deprecated
public void setEvictorShutdownTimeoutMillis(final long evictorShutdownTimeoutMillis) {
setEvictorShutdownTimeoutDuration(Duration.ofMillis(evictorShutdownTimeoutMillis));
setEvictorShutdownTimeout(Duration.ofMillis(evictorShutdownTimeoutMillis));
}

/**

0 comments on commit 18fe4f6

Please sign in to comment.