Implement evictionPolicy
Nobody has claimed this yet.
- Dominant language
- Scala
- Stars
- 39
- Forks
- 18
- Avg merge
- 8h 26m
- Merged PRs (30d)
- 4
Description
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
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
No source files or tests are named. Start by reviewing keypool's current idleTimeAllowedInPool eviction behavior and the referenced commons-pool2 EvictionPolicy and DefaultEvictionPolicy documentation. Done requires identifying relevant custom-policy use cases and agreeing on the policy and configuration scope before implementation.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java, scala
- Domain
- backend
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100