public interface ILdapConnFactory
| Modifier and Type | Method and Description |
|---|---|
int |
freeConn()
Returns the number of free connections available from this pool.
|
netscape.ldap.LDAPConnection |
getConn()
Request access to a Ldap connection from the pool.
|
void |
init(IConfigStore config)
Initialize the poll from the config store.
|
int |
maxConn()
Returns the maximum number of connections available from this pool.
|
void |
reset()
Used for disconnecting all connections.
|
void |
returnConn(netscape.ldap.LDAPConnection conn)
Return connection to the factory.
|
int |
totalConn()
Returns the number of total connections available from this pool.
|
void init(IConfigStore config) throws EBaseException, ELdapException
config - The configuration substore.EBaseException - On configuration error.ELdapException - On all other errors.void reset()
throws ELdapException
EldapException - on Ldap failure when closing connections.ELdapExceptionint freeConn()
int totalConn()
int maxConn()
netscape.ldap.LDAPConnection getConn()
throws ELdapException
ELdapException - if any error occurs, such as avoid returnConn(netscape.ldap.LDAPConnection conn)
throws ELdapException
conn - Ldap connection object to be returned to the free list of the pool.ELdapException - On any failure to return the connection.