By contract, when an {@link KeyedObjectPool}delegates to a {@link KeyedPoolableObjectFactory},
validateObject may also be used to test an instance being {@link KeyedObjectPool#returnObject returned} to the poolbefore it is {@link #passivateObject passivated}. It will only be invoked on an activated instance. validateObject, or for reasons specific to the pool implementation.) There is no guarantee that the instance being destroyed will be considered active, passive or in a generally consistent state. {@link KeyedPoolableObjectFactory} must be thread-safe. The only promisean {@link KeyedObjectPool} makes is that the same instance of an object will notbe passed to more than one method of a KeyedPoolableObjectFactory at a time.
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |