edu.vt.middleware.ldap.pool
T
- type of ldap objectpublic class PrunePoolTask<T extends BaseLdap> extends java.util.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.
|
public void run()
LdapPool.prune()
.run
in interface java.lang.Runnable
run
in class java.util.TimerTask
Copyright © 2014. All Rights Reserved.