keypool
keypool copied to clipboard
A Keyed Pool Implementation for Scala
People want metrics on their pools. We should expose and approach that people can expose their metrics over the state of their pools. Both checked out and checked in keys....
- Acquire Timeout: Not sure if we want this a part of the pool or just user controlled. When a maximum number of connections exist and we are waiting. We...
`KeyPool` and `Pool` now support a `fairness` parameter that controls how incoming requests are handled. When `fairness` is true requests are served in FIFO order, and when `fairness` is false...
## commons-pool2 functionality In commons-pool2, [`fairness`]( https://javadoc.io/doc/org.apache.commons/commons-pool2/latest/org/apache/commons/pool2/impl/BaseGenericObjectPool.html#getFairness()) determines whether requests are serviced in FIFO or LIFO order. The default is LIFO. ## Current behavior keypool only supports FIFO. ## Analysis...
## commons-pool2 functionality In commons-pool2, an [`EvictionPolicy`](https://javadoc.io/doc/org.apache.commons/commons-pool2/latest/org/apache/commons/pool2/impl/EvictionPolicy.html) determines whether an object is evicted on each run. The [`DefaultEvictionPolicy`](https://javadoc.io/doc/org.apache.commons/commons-pool2/latest/org/apache/commons/pool2/impl/DefaultEvictionPolicy.html) considers multiple properties, including a notion of soft eviction. ## Current behavior...
## commons-pool2 functionality In commons-pool2, [`borrowObject`]( https://javadoc.io/doc/org.apache.commons/commons-pool2/latest/org/apache/commons/pool2/impl/GenericKeyedObjectPool.html#borrowObject(K)), when no object is available, it may immediately raise an error or block for a specified duration, depending on the `blockWhenExhausted` property. ##...
## About this PR 📦 Updates * [org.scala-native:nscplugin](https://github.com/scala-native/scala-native) * [org.scala-native:sbt-scala-native](https://github.com/scala-native/scala-native) from `0.4.17` to `0.5.4` 📜 [GitHub Release Notes](https://github.com/scala-native/scala-native/releases/tag/v0.5.4) - [Version Diff](https://github.com/scala-native/scala-native/compare/v0.4.17...v0.5.4) ## Usage ✅ **Please merge!** I'll automatically update this...
## About this PR 📦 Updates * [org.scala-native:nscplugin](https://github.com/scala-native/scala-native) * [org.scala-native:sbt-scala-native](https://github.com/scala-native/scala-native) from `0.4.17` to `0.5.5` 📜 [GitHub Release Notes](https://github.com/scala-native/scala-native/releases/tag/v0.5.5) - [Version Diff](https://github.com/scala-native/scala-native/compare/v0.4.17...v0.5.5) ## Usage ✅ **Please merge!** I'll automatically update this...
## About this PR 📦 Updates * [org.scala-native:nscplugin](https://github.com/scala-native/scala-native) * [org.scala-native:sbt-scala-native](https://github.com/scala-native/scala-native) from `0.4.17` to `0.5.7` 📜 [GitHub Release Notes](https://github.com/scala-native/scala-native/releases/tag/v0.5.7) - [Version Diff](https://github.com/scala-native/scala-native/compare/v0.4.17...v0.5.7) ## Usage ✅ **Please merge!** I'll automatically update this...
On Test (ubuntu-22.04, 3, temurin@8, rootNative) , #631: ``` ==> X org.typelevel.keypool.PoolSpec.Used Resource Cleaned Up By Reaper 6.020s munit.FailException: core/src/test/scala/org/typelevel/keypool/PoolSpec.scala:111 assertion failed 110: later