> Dale - are you suggesting a ConnectionPoolService that returns ConnectionPool 
> instances?

Yes.

> Would that mean ConnectionPool would extend Pool and we would deprecate Pool 
> itself?

Maybe extend. I worry about extending, for two reasons.

First, extending would make the new interface depend on the deprecated one. 
That feels awkward for reasons I can’t articulate

Second, extending would mean that the new interface gets all the methods of the 
deprecated one whether we want them or not. I don’t know enough about Pool to 
have an opinion about whether we want to carry all of its method signatures 
forward.

An alternative to consider: Each ConnectionPool implementation delegates to a 
Pool. I suspect that this would make it harder to migrate existing uses from 
Pool to ConnectionPool.

—
Dale Emery
dem...@pivotal.io

Reply via email to