Reimplement DefaultPooledObject.getIdleDuration() using Duration
authorGary Gregory <gardgregory@gmail.com>
Fri, 13 Aug 2021 16:02:07 +0000 (12:02 -0400)
committerGary Gregory <gardgregory@gmail.com>
Fri, 13 Aug 2021 16:02:07 +0000 (12:02 -0400)
commit53c72e917c0ddc060745ba4edf1b4fff056c1bda
tree2a628afbd6aa4755260ac604489a38197daaa611
parent84ac062960996efb5701a5a85f39f8a818082e15
Reimplement DefaultPooledObject.getIdleDuration() using Duration
computation.

The default implementation of TrackedUse.getLastUsedInstant() uses
seconds instead of milliseconds. This interface is not implemented
within Commons Pool.

Local build ok, still looking at weird GH build failures.
src/changes/changes.xml
src/main/java/org/apache/commons/pool2/TrackedUse.java
src/main/java/org/apache/commons/pool2/impl/DefaultPooledObject.java
src/test/java/org/apache/commons/pool2/impl/TestGenericObjectPool.java