public class LdapPoolVTStrategy extends Object implements LdapPoolStrategy
| Modifier and Type | Field and Description |
|---|---|
private int |
blockWaitTime
Amount of time to wait, in milliseconds, if blocking when the pool is empty.
|
private boolean |
blockWhenEmpty
Whether to block when empty.
|
private edu.vt.middleware.ldap.pool.LdapFactory<edu.vt.middleware.ldap.Ldap> |
ldapFactory
Factory for making ldap objects.
|
private edu.vt.middleware.ldap.pool.LdapPool<edu.vt.middleware.ldap.Ldap> |
ldapPool
Underlying pool.
|
private edu.vt.middleware.ldap.pool.LdapPoolConfig |
ldapPoolConfig
Ldap pool configuration.
|
private org.slf4j.Logger |
log
Class logger.
|
| Constructor and Description |
|---|
LdapPoolVTStrategy()
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
checkIn(edu.vt.middleware.ldap.Ldap l)
Return an ldap object.
|
edu.vt.middleware.ldap.Ldap |
checkOut()
Retrieve an ldap object.
|
void |
initialize()
Prepare the pool for use.
|
void |
setBlockWaitTime(int waitTime)
Sets the amount of time to wait, in milliseconds, if blocking when the pool is empty.
|
void |
setBlockWhenEmpty(boolean block)
Sets whether to block when the pool is empty.
|
void |
setLdapFactory(edu.vt.middleware.ldap.pool.LdapFactory<edu.vt.middleware.ldap.Ldap> factory)
Sets the ldap factory.
|
void |
setLdapPoolConfig(edu.vt.middleware.ldap.pool.LdapPoolConfig config)
Sets the ldap pool configuration.
|
private final org.slf4j.Logger log
private edu.vt.middleware.ldap.pool.LdapPool<edu.vt.middleware.ldap.Ldap> ldapPool
private edu.vt.middleware.ldap.pool.LdapPoolConfig ldapPoolConfig
private edu.vt.middleware.ldap.pool.LdapFactory<edu.vt.middleware.ldap.Ldap> ldapFactory
private boolean blockWhenEmpty
private int blockWaitTime
public void setLdapPoolConfig(edu.vt.middleware.ldap.pool.LdapPoolConfig config)
setLdapPoolConfig in interface LdapPoolStrategyconfig - to manage ldap pool withpublic void setLdapFactory(edu.vt.middleware.ldap.pool.LdapFactory<edu.vt.middleware.ldap.Ldap> factory)
setLdapFactory in interface LdapPoolStrategyfactory - to create ldap objects withpublic void setBlockWhenEmpty(boolean block)
setBlockWhenEmpty in interface LdapPoolStrategyblock - when the pool is emptypublic void setBlockWaitTime(int waitTime)
waitTime - amount of time to wait, in milliseconds, if blocking when the pool is emptypublic void initialize()
initialize in interface LdapPoolStrategypublic edu.vt.middleware.ldap.Ldap checkOut()
throws Exception
checkOut in interface LdapPoolStrategyException - thrown if there is a problem checking in an Ldap objectpublic void checkIn(edu.vt.middleware.ldap.Ldap l)
throws Exception
checkIn in interface LdapPoolStrategyl - the ldap objectException - thrown if there is a problem checking out an Ldap objectCopyright © 1999-2015. All Rights Reserved.