Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement evictionPolicy #558

Open
rossabaker opened this issue Jun 26, 2024 · 0 comments
Open

Implement evictionPolicy #558

rossabaker opened this issue Jun 26, 2024 · 0 comments

Comments

@rossabaker
Copy link
Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant