Commons Pool Changes
Sandy McArthur
Where there is no factory calling addObject is bogus so throw an IllegalStateExecption.
Edited all KeyedObjectPool related JavaDocs to have meaningful and correct content.
Implemented until tests to verify KeyedObjectPool implementations conformed to Pool 2 contracts.
Updated GenericKeyedObjectPool and StackKeyedObjectPool to conformant behavior.
Don't ignore maxTotal parameter in
GenericKeyedObjectPool(KeyedPoolableObjectFactory factory, int maxActive, byte whenExhaustedAction,
long maxWait, int maxIdle, int maxTotal, boolean testOnBorrow, boolean testOnReturn,
long timeBetweenEvictionRunsMillis, int numTestsPerEvictionRun, long minEvictableIdleTimeMillis,
boolean testWhileIdle)
Change StackKeyedObjectPool to discard stalest, not freshest, idle object when maxSleeping is reached.
Edited all ObjectPool related JavaDocs to have meaningful and correct content.
Implemented until tests to verify ObjectPool implementations conformed to Pool 2 contracts.
Updated GenericObjectPool, StackObjectPool, and SoftReferenceObjectPool to conformant behavior.
Fix JavaDocs to conform to Pool 2 contracts.
Improved SoftReferenceObjectPool getNumIdle accuracy.
Updates to javadoc contracts for 2.0.
A large number of bug fixes. See release notes for changes.
GenericKeyedObjectPoolFactory Config Constructor is incorrect
Not possible to extend GenericObjectPool.returnObject() without affecting addObject()
A lot of corner cases were fixed
Performance improvement by optimizing pool synchronization, the critical code paths were optimized by reducing pool synchronization but we also added more synchronization where needed
New minIdle feature: the minimum number of objects allowed in the pool before the evictor thread (if active) spawns new objects. (Note no objects are created when: numActive + numIdle >= maxActive)
New maxTotal feature: a cap on the total number of instances controlled by a pool. Only for GenericKeyedObjectPool where maxActive is a cap on the number of active instances from the pool (per key).
UML Class and sequence diagrams
See bugzilla for more changes
No change log available.
No change log available.