Pool.close()
, which forbids new resource requests and releases all releasable resources.PoolResource.allowRelease()
, which allows a resource to indicate that it can be released without forcing it to deallocate immediately.TimeoutException
is now correctly thrown if the pool detects a deadlock.