- Store checked out connections in a Set on the connection pool class
- Also consider refactoring to store other connection related properties in maps (won't do)
- kPending will not be changed, because when we increment kPending we don’t have a reference to a connection. We could consider storing a set of connectionIds instead of a counter in kPending but I think a counter suffices.
- kCheckedOut will now be a Set
- Expose the checked out connections with an internal getter so shell can access the connections.
|