public class LdapConnectionPooledObjectFactory
extends org.apache.commons.pool2.BasePooledObjectFactory<org.forgerock.opendj.ldap.Connection>
Constructor and Description |
---|
LdapConnectionPooledObjectFactory(org.forgerock.opendj.ldap.LDAPConnectionFactory ldapConnectionFactory) |
Modifier and Type | Method and Description |
---|---|
org.forgerock.opendj.ldap.Connection |
create() |
void |
destroyObject(org.apache.commons.pool2.PooledObject<org.forgerock.opendj.ldap.Connection> p) |
boolean |
validateObject(org.apache.commons.pool2.PooledObject<org.forgerock.opendj.ldap.Connection> p) |
org.apache.commons.pool2.PooledObject<org.forgerock.opendj.ldap.Connection> |
wrap(org.forgerock.opendj.ldap.Connection connection) |
public LdapConnectionPooledObjectFactory(org.forgerock.opendj.ldap.LDAPConnectionFactory ldapConnectionFactory)
public org.forgerock.opendj.ldap.Connection create() throws Exception
create
in class org.apache.commons.pool2.BasePooledObjectFactory<org.forgerock.opendj.ldap.Connection>
Exception
public org.apache.commons.pool2.PooledObject<org.forgerock.opendj.ldap.Connection> wrap(org.forgerock.opendj.ldap.Connection connection)
wrap
in class org.apache.commons.pool2.BasePooledObjectFactory<org.forgerock.opendj.ldap.Connection>
public void destroyObject(org.apache.commons.pool2.PooledObject<org.forgerock.opendj.ldap.Connection> p) throws Exception
destroyObject
in interface org.apache.commons.pool2.PooledObjectFactory<org.forgerock.opendj.ldap.Connection>
destroyObject
in class org.apache.commons.pool2.BasePooledObjectFactory<org.forgerock.opendj.ldap.Connection>
Exception
public boolean validateObject(org.apache.commons.pool2.PooledObject<org.forgerock.opendj.ldap.Connection> p)
validateObject
in interface org.apache.commons.pool2.PooledObjectFactory<org.forgerock.opendj.ldap.Connection>
validateObject
in class org.apache.commons.pool2.BasePooledObjectFactory<org.forgerock.opendj.ldap.Connection>
This work is licensed under a Creative Commons Attribution 4.0 International License.