# Uses of Interface
org.apache.commons.pool2.impl.EvictionPolicy

Packages that use EvictionPolicy
Package
Description
org.apache.commons.pool2.impl
Object pooling API implementations.

- ## Uses of EvictionPolicy in org.apache.commons.pool2.impl

  Classes in org.apache.commons.pool2.impl that implement EvictionPolicy
  Modifier and Type
  Class
  Description
  `class`
  `DefaultEvictionPolicy<T>`
  Provides the default implementation of `EvictionPolicy` used by the pools.
  Methods in org.apache.commons.pool2.impl that return EvictionPolicy
  Modifier and Type
  Method
  Description
  `EvictionPolicy<T>`
  BaseGenericObjectPool.`getEvictionPolicy()`
  Gets the `EvictionPolicy` defined for this pool.
  `EvictionPolicy<T>`
  BaseObjectPoolConfig.`getEvictionPolicy()`
  Gets the value for the `evictionPolicyClass` configuration attribute for pools created with this configuration instance.
  Methods in org.apache.commons.pool2.impl with parameters of type EvictionPolicy
  Modifier and Type
  Method
  Description
  `void`
  BaseGenericObjectPool.`setEvictionPolicy(EvictionPolicy<T> evictionPolicy)`
  Sets the eviction policy for this pool.
  `void`
  BaseObjectPoolConfig.`setEvictionPolicy(EvictionPolicy<T> evictionPolicy)`
  Sets the value for the `evictionPolicyClass` configuration attribute for pools created with this configuration instance.