By contract, when an {@link ObjectPool ObjectPool}delegates to a PoolableObjectFactory,
By contract, when an {@link ObjectPool}delegates to a {@link PoolableObjectFactory},
validateObject may also be used to test an instance being {@link ObjectPool#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 PoolableObjectFactory} must be thread-safe. The only promisean {@link ObjectPool} makes is that the same instance of an object will notbe passed to more than one method of a PoolableObjectFactory at a time.
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |