I've been looking to implement pooling in part of my application. I want to use the Commons Pool library but am slightly concerned about how the close()
behaviour works. From looking at the javadocs and source code, it doesn't seem clear whether objects created in the pool will be destroyed when the close()
method is called. From what I can see, only objects that are idle in the pool will be destroyed - any that are being used, and yet to be returned, will not be touched.
Have I missed something here? I want to be sure that all objects are destroyed correctly when the pool is closed.
Anyone used this before and have an idea about how it works?
close()
are you referring to? – Bennett