Whats wrong with the close() method?
As described in the Javadocs. If the objects you are pooling require special handling when flushing/being discarded, I think you will have to program that yourself. From my cursory examination of the API, it looks like your implementation of PoolableObjectFactory can specify what happens to the discarded object in the destroyObject method.
Bill