public class LdapPoolVTStrategy extends Object implements LdapPoolStrategy
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.
|
public void setLdapPoolConfig(edu.vt.middleware.ldap.pool.LdapPoolConfig config)
setLdapPoolConfig
in interface LdapPoolStrategy
config
- to manage ldap pool withpublic void setLdapFactory(edu.vt.middleware.ldap.pool.LdapFactory<edu.vt.middleware.ldap.Ldap> factory)
setLdapFactory
in interface LdapPoolStrategy
factory
- to create ldap objects withpublic void setBlockWhenEmpty(boolean block)
setBlockWhenEmpty
in interface LdapPoolStrategy
block
- 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 LdapPoolStrategy
public edu.vt.middleware.ldap.Ldap checkOut() throws Exception
checkOut
in interface LdapPoolStrategy
Exception
- thrown if there is a problem checking in an Ldap
objectpublic void checkIn(edu.vt.middleware.ldap.Ldap l) throws Exception
checkIn
in interface LdapPoolStrategy
l
- the ldap objectException
- thrown if there is a problem checking out an Ldap
objectCopyright © 1999–2014. All rights reserved.