public abstract class BasePool extends Object
BasePoolConfig
.Modifier | Constructor and Description |
---|---|
protected |
BasePool(BasePoolConfig poolConfig)
Create a new pool given
BasePoolConfig . |
Modifier and Type | Method and Description |
---|---|
boolean |
isTestOnAcquire()
Returns whether objects acquired from the pool will be validated before being returned from the acquire method.
|
boolean |
isTestOnCreate()
Returns whether objects created for the pool will be validated before being returned from the acquire method.
|
boolean |
isTestOnRelease()
Returns whether objects borrowed from the pool will be validated when they are returned to the pool via the release
method.
|
protected BasePool(BasePoolConfig poolConfig)
BasePoolConfig
.poolConfig
- must not be null.public boolean isTestOnCreate()
AsyncObjectFactory.validate(Object)
method of the factory associated with the pool. If the
object fails to validate, then acquire will fail.public boolean isTestOnAcquire()
AsyncObjectFactory.validate(Object)
method of the factory associated with the
pool. If the object fails to validate, it will be removed from the pool and destroyed, and a new attempt will be made to
borrow an object from the pool.public boolean isTestOnRelease()
AsyncObjectFactory.validate(Object)
method of the factory associated with
the pool. Returning objects that fail validation are destroyed rather then being returned the pool.Copyright © 2019 lettuce.io. All rights reserved.