|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ldaptive.pool.PooledConnectionFactory
public class PooledConnectionFactory
Leverages a pool to obtain connections for performing ldap operations.
| Constructor Summary | |
|---|---|
PooledConnectionFactory()
Default constructor. |
|
PooledConnectionFactory(ConnectionPool cp)
Creates a new pooled connection factory. |
|
| Method Summary | |
|---|---|
Connection |
getConnection()
Returns a connection from the pool. |
ConnectionPool |
getConnectionPool()
Returns the connection pool. |
void |
setConnectionPool(ConnectionPool cp)
Sets the connection pool. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public PooledConnectionFactory()
public PooledConnectionFactory(ConnectionPool cp)
cp - connection pool| Method Detail |
|---|
public ConnectionPool getConnectionPool()
public void setConnectionPool(ConnectionPool cp)
cp - connection pool
public Connection getConnection()
throws LdapException
getConnection in interface ConnectionFactoryLdapException - if a connection cannot be retrieved from the poolpublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||