Top Deprecated
Apache Commons Pool 2.12.0

Deprecated API


No API in this release is deprecated for removal.

Deprecated Item Summary

SinceDeprecated Item and Description
org.apache.commons.pool2.PoolUtils.prefill(final KeyedObjectPool<K, V>
the keyedPool to prefill.
keyedPool
,
final Collection<K>
Collection of keys to add objects for.
keys
,
final int
the number of idle objects to add for each key.
count
)

Use KeyedObjectPool#addObjects(Collection, int).

org.apache.commons.pool2.PoolUtils.prefill(final KeyedObjectPool<K, V>
the keyedPool to prefill.
keyedPool
,
final K
the key to add objects for.
key
,
final int
the number of idle objects to add for key.
count
)

Use KeyedObjectPool#addObjects(Object, int).

org.apache.commons.pool2.PoolUtils.prefill(final ObjectPool<T>
the pool to prefill.
pool
,
final int
the number of idle objects to add.
count
)

Use ObjectPool#addObjects(int).

Returns:

The duration last spent in the active state.
org.apache.commons.pool2.PooledObject.getActiveTime
()

Use getActiveDuration().

Returns:

The time in milliseconds last spent in the active state.
org.apache.commons.pool2.PooledObject.getActiveTimeMillis
()

Use getActiveTime() which offers the best precision.

Returns:

The creation time for the wrapped object.
org.apache.commons.pool2.PooledObject.getCreateTime
()

Use getCreateInstant() which offers the best precision.

Returns:

The amount of time in last spent in the idle state.
org.apache.commons.pool2.PooledObject.getIdleTime
()

Use getIdleDuration().

Returns:

The time in milliseconds last spent in the idle state.
org.apache.commons.pool2.PooledObject.getIdleTimeMillis
()

Use getIdleTime() which offers the best precision.

Returns:

The time the object was last borrowed.
org.apache.commons.pool2.PooledObject.getLastBorrowTime
()

Use getLastBorrowInstant() which offers the best precision.

Returns:

The time the object was last returned.
org.apache.commons.pool2.PooledObject.getLastReturnTime
()

Use getLastReturnInstant() which offers the best precision.

Returns:

the last time this object was used.
org.apache.commons.pool2.PooledObject.getLastUsedTime
()

Use getLastUsedInstant() which offers the best precision.

Returns:

the last time this object was used in milliseconds.
org.apache.commons.pool2.TrackedUse.getLastUsed
()

Use getLastUsedInstant() which offers the best precision.

org.apache.commons.pool2.impl.AbandonedConfig.setRemoveAbandonedTimeout(final int
new abandoned timeout in seconds
removeAbandonedTimeoutSeconds
)

Use setRemoveAbandonedTimeout(Duration).

Returns:

The timeout that will be used while waiting for the Evictor to shut down.
org.apache.commons.pool2.impl.BaseGenericObjectPool.getEvictorShutdownTimeout
()

Use getEvictorShutdownTimeoutDuration().

Returns:

The timeout in milliseconds that will be used while waiting for the Evictor to shut down.
org.apache.commons.pool2.impl.BaseGenericObjectPool.getEvictorShutdownTimeoutMillis
()

Use getEvictorShutdownTimeoutDuration().

Returns:

maximum wait time in milliseconds since the pool was created
org.apache.commons.pool2.impl.BaseGenericObjectPool.getMaxBorrowWaitTimeMillis
()

Use getMaxBorrowWaitDuration().

Returns:

the maximum number of milliseconds borrowObject() will block.
org.apache.commons.pool2.impl.BaseGenericObjectPool.getMaxWaitMillis
()

Use getMaxWaitDuration().

Returns:

mean time an object has been checked out from the pool among recently returned objects.
org.apache.commons.pool2.impl.BaseGenericObjectPool.getMeanActiveTimeMillis
()

Use getMeanActiveDuration().

Returns:

mean time in milliseconds that a recently served thread has had to wait to borrow an object from the pool.
org.apache.commons.pool2.impl.BaseGenericObjectPool.getMeanBorrowWaitTimeMillis
()

Use getMeanBorrowWaitDuration().

Returns:

mean time an object has been idle in the pool among recently borrowed objects.
org.apache.commons.pool2.impl.BaseGenericObjectPool.getMeanIdleTimeMillis
()

Use getMeanIdleDuration().

Returns:

minimum amount of time an object may sit idle in the pool before it is eligible for eviction
org.apache.commons.pool2.impl.BaseGenericObjectPool.getMinEvictableIdleTime
()

Use getMinEvictableIdleDuration().

Returns:

minimum amount of time an object may sit idle in the pool before it is eligible for eviction
org.apache.commons.pool2.impl.BaseGenericObjectPool.getMinEvictableIdleTimeMillis
()

Use getMinEvictableIdleDuration().

Returns:

The abandoned object timeout in seconds if abandoned object removal is configured for this pool; Integer.MAX_VALUE otherwise.
org.apache.commons.pool2.impl.BaseGenericObjectPool.getRemoveAbandonedTimeout
()

Use getRemoveAbandonedTimeoutDuration().

Returns:

minimum amount of time an object may sit idle in the pool before it is eligible for eviction if minIdle instances are available
org.apache.commons.pool2.impl.BaseGenericObjectPool.getSoftMinEvictableIdleTime
()

Use getSoftMinEvictableIdleDuration.

Returns:

minimum amount of time an object may sit idle in the pool before it is eligible for eviction if minIdle instances are available
org.apache.commons.pool2.impl.BaseGenericObjectPool.getSoftMinEvictableIdleTimeMillis
()

Use getSoftMinEvictableIdleTime().

org.apache.commons.pool2.impl.BaseGenericObjectPool.setEvictorShutdownTimeoutMillis(final long
the timeout in milliseconds that will be used while waiting for the Evictor to shut down.
evictorShutdownTimeoutMillis
)

Use setEvictorShutdownTimeout(Duration).

org.apache.commons.pool2.impl.BaseGenericObjectPool.setMaxWaitMillis(final long
the maximum number of milliseconds borrowObject() will block or negative for indefinitely.
maxWaitMillis
)

Use setMaxWait.

org.apache.commons.pool2.impl.BaseGenericObjectPool.setMinEvictableIdle(final Duration
minimum amount of time an object may sit idle in the pool before it is eligible for eviction
minEvictableIdleTime
)

Use setMinEvictableIdleDuration(Duration).

org.apache.commons.pool2.impl.BaseGenericObjectPool.setMinEvictableIdleTime(final Duration
minimum amount of time an object may sit idle in the pool before it is eligible for eviction
minEvictableIdleTime
)

Use setMinEvictableIdleDuration(Duration).

org.apache.commons.pool2.impl.BaseGenericObjectPool.setMinEvictableIdleTimeMillis(final long
minimum amount of time an object may sit idle in the pool before it is eligible for eviction
minEvictableIdleTimeMillis
)

Use setMinEvictableIdleTime(Duration).

org.apache.commons.pool2.impl.BaseGenericObjectPool.setSoftMinEvictableIdle(final Duration
minimum amount of time an object may sit idle in the pool before it is eligible for eviction if minIdle instances are available
softMinEvictableIdleTime
)

Use setSoftMinEvictableIdleDuration(Duration).

org.apache.commons.pool2.impl.BaseGenericObjectPool.setSoftMinEvictableIdleTime(final Duration
minimum amount of time an object may sit idle in the pool before it is eligible for eviction if minIdle instances are available
softMinEvictableIdleTime
)

Use setSoftMinEvictableIdleDuration(Duration).

org.apache.commons.pool2.impl.BaseGenericObjectPool.setSoftMinEvictableIdleTimeMillis(final long
minimum amount of time an object may sit idle in the pool before it is eligible for eviction if minIdle instances are available
softMinEvictableIdleTimeMillis
)

Use setSoftMinEvictableIdleDuration(Duration).

org.apache.commons.pool2.impl.BaseGenericObjectPool.setTimeBetweenEvictionRunsMillis(final long
number of milliseconds to sleep between evictor runs
timeBetweenEvictionRunsMillis
)

Use setDurationBetweenEvictionRuns(Duration).

Returns:

The current setting of evictorShutdownTimeout for this configuration instance
org.apache.commons.pool2.impl.BaseObjectPoolConfig.getEvictorShutdownTimeout
()

Use getEvictorShutdownTimeoutDuration().

Returns:

The current setting of evictorShutdownTimeout for this configuration instance
org.apache.commons.pool2.impl.BaseObjectPoolConfig.getEvictorShutdownTimeoutMillis
()

Use getEvictorShutdownTimeout().

Returns:

The current setting of maxWait for this configuration instance
org.apache.commons.pool2.impl.BaseObjectPoolConfig.getMaxWaitMillis
()

Use getMaxWaitDuration().

Returns:

The current setting of minEvictableIdleTime for this configuration instance
org.apache.commons.pool2.impl.BaseObjectPoolConfig.getMinEvictableIdleTime
()

Use getMinEvictableIdleDuration().

Returns:

The current setting of minEvictableIdleTime for this configuration instance
org.apache.commons.pool2.impl.BaseObjectPoolConfig.getMinEvictableIdleTimeMillis
()

Use getMinEvictableIdleTime().

Returns:

The current setting of softMinEvictableIdleTime for this configuration instance
org.apache.commons.pool2.impl.BaseObjectPoolConfig.getSoftMinEvictableIdleTime
()

Use getSoftMinEvictableIdleDuration().

Returns:

The current setting of softMinEvictableIdleTime for this configuration instance
org.apache.commons.pool2.impl.BaseObjectPoolConfig.getSoftMinEvictableIdleTimeMillis
()

Use getSoftMinEvictableIdleDuration().

Returns:

The current setting of timeBetweenEvictionRuns for this configuration instance
org.apache.commons.pool2.impl.BaseObjectPoolConfig.getTimeBetweenEvictionRuns
()

Use getDurationBetweenEvictionRuns().

Returns:

The current setting of timeBetweenEvictionRuns for this configuration instance
org.apache.commons.pool2.impl.BaseObjectPoolConfig.getTimeBetweenEvictionRunsMillis
()

Use getDurationBetweenEvictionRuns().

org.apache.commons.pool2.impl.BaseObjectPoolConfig.setEvictorShutdownTimeoutMillis(final Duration
The new setting of evictorShutdownTimeout for this configuration instance
evictorShutdownTimeout
)

Use setEvictorShutdownTimeout(Duration).

org.apache.commons.pool2.impl.BaseObjectPoolConfig.setEvictorShutdownTimeoutMillis(final long
The new setting of evictorShutdownTimeout for this configuration instance
evictorShutdownTimeoutMillis
)

Use setEvictorShutdownTimeout(Duration).

org.apache.commons.pool2.impl.BaseObjectPoolConfig.setMaxWaitMillis(final long
The new setting of maxWaitMillis for this configuration instance
maxWaitMillis
)

Use setMaxWait(Duration).

org.apache.commons.pool2.impl.BaseObjectPoolConfig.setMinEvictableIdleTime(final Duration
The new setting of minEvictableIdleTime for this configuration instance
minEvictableIdleTime
)

Use setMinEvictableIdleDuration(Duration).

org.apache.commons.pool2.impl.BaseObjectPoolConfig.setMinEvictableIdleTimeMillis(final long
The new setting of minEvictableIdleTime for this configuration instance
minEvictableIdleTimeMillis
)

Use setMinEvictableIdleDuration(Duration).

org.apache.commons.pool2.impl.BaseObjectPoolConfig.setSoftMinEvictableIdleTime(final Duration
The new setting of softMinEvictableIdleTime for this configuration instance
softMinEvictableIdleTime
)

Use setSoftMinEvictableIdleDuration(Duration).

org.apache.commons.pool2.impl.BaseObjectPoolConfig.setSoftMinEvictableIdleTimeMillis(final long
The new setting of softMinEvictableIdleTime for this configuration instance
softMinEvictableIdleTimeMillis
)

Use setSoftMinEvictableIdleDuration(Duration).

org.apache.commons.pool2.impl.BaseObjectPoolConfig.setTimeBetweenEvictionRunsMillis(final long
The new setting of timeBetweenEvictionRuns for this configuration instance
timeBetweenEvictionRunsMillis
)

Use setTimeBetweenEvictionRuns(Duration).

Returns:

a new CallStack
org.apache.commons.pool2.impl.CallStackUtils.newCallStack
(final String
message (or format) to print first in stack traces
messageFormat
,
final boolean
if true, interpret message as a SimpleDateFormat and print the created timestamp; otherwise, print message format literally
useTimestamp
)

use newCallStack(String, boolean, boolean)

Returns:

The (@code idleSoftEvictTime} in milliseconds
org.apache.commons.pool2.impl.EvictionConfig.getIdleSoftEvictTime
()

Use getIdleSoftEvictDuration().

org.apache.commons.pool2.impl.SecurityManagerCallStack.PrivateSecurityManager

Deprecated as a consequence of SecurityManager being deprecated. See corresponding docs for further information.

org.apache.commons.pool2.impl.SecurityManagerCallStack.securityManager

Deprecated as a consequence of SecurityManagerCallStack.PrivateSecurityManager being deprecated. See corresponding docs for further information.