You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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
The text was updated successfully, but these errors were encountered: