Skip to content

Implement evictionPolicy #558

@rossabaker

Description

@rossabaker

commons-pool2 functionality

In commons-pool2, an EvictionPolicy determines whether an object is evicted on each run.

The DefaultEvictionPolicy considers multiple properties, including a notion of soft eviction.

Current behavior

keypool evicts on idleTimeAllowedInPool, how long the object has been idle, and the current time.

Analysis

commons-pool2's eviction policy is more sophisticated, but its configuration is more sophisticated. With custom eviction policies, it's possible to implement policies that contradict the configuration.

Before investing heavily in this, it would be interesting to identify cases where commons-pool2 clients have implemented their own policy and why.

Workarounds

None

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions