Details
-
Improvement
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
None
-
None
-
Operating System: All
Platform: All
-
38666
Description
Attached are the pool 2.0 changes I'd like to see to the ObjectPool and the
KeyedObjectPool interfaces for the getNumActive and the getNumIdle methods. The
noteworthy changes are:
- those methods are declared to return a negative value to indicate they do not
support the requested operation. Currently they throw an
UnsupportedOperationException. The throwing of UOE is documented at deprecated
and I hope to remove that in Pool 3.0. Since UOE is a RuntimeException removing
it will not cause any API compatibility problems.