|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ILdapConnFactory
Maintains a pool of connections to the LDAP server. Multiple threads use this interface to utilize and release the Ldap connection resources.
Method Summary | |
---|---|
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. |
Method Detail |
---|
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.
ELdapException
int 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.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |