T
- type of ldap objectpublic class PrunePoolTask<T extends BaseLdap> extends TimerTask
PrunePoolTask
is a periodic task that removes available ldap
objects from the pool if the objects have been in the pool longer than a
configured expiration time and the pool size is above it's configured
minimum. Task will skip execution if the pool has any active objects.Modifier and Type | Field and Description |
---|---|
protected org.apache.commons.logging.Log |
logger
Log for this class.
|
Constructor and Description |
---|
PrunePoolTask(LdapPool<T> lp)
Creates a new task to periodically prune the supplied pool.
|
Modifier and Type | Method and Description |
---|---|
void |
run()
This attempts to remove idle objects from a pool.
|
cancel, scheduledExecutionTime
public void run()
LdapPool.prune()
.Copyright © 2014. All rights reserved.