Class PooledLdapConnection
java.lang.Object
org.apache.directory.ldap.client.api.LdapConnectionWrapper
org.apache.directory.ldap.client.api.PooledLdapConnection
- All Implemented Interfaces:
Closeable, AutoCloseable, LdapConnection, Wrapper<LdapConnection>
A wrapper around an LdapConnection that returns the connection to the pool when closed.
-
Field Summary
Fields inherited from class LdapConnectionWrapper
connection -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Disconnect from the remote LDAP server.voidSet the connection pool to useMethods inherited from class LdapConnectionWrapper
abandon, abandon, add, add, anonymousBind, bind, bind, bind, bind, bind, bind, bind, compare, compare, compare, compare, compare, compare, compare, connect, delete, delete, delete, doesFutureExistFor, exceptionCaught, exists, exists, extended, extended, extended, extended, extended, getBinaryAttributeDetector, getCodecService, getRootDse, getRootDse, getSchemaManager, getSupportedControls, isAuthenticated, isConnected, isControlSupported, isRequestCompleted, loadSchema, loadSchemaRelaxed, lookup, lookup, lookup, lookup, lookup, lookup, modify, modify, modify, modify, modifyDn, move, move, moveAndRename, moveAndRename, moveAndRename, moveAndRename, rename, rename, rename, rename, search, search, search, setBinaryAttributeDetector, setSchemaManager, setTimeOut, unBind, wrapped
-
Method Details
-
close
Description copied from class:LdapConnectionWrapperDisconnect from the remote LDAP server.- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Specified by:
closein interfaceLdapConnection- Overrides:
closein classLdapConnectionWrapper- Throws:
IOException- if some I/O error occurs
-
setConnectionPool
Set the connection pool to use- Parameters:
pool- The connection pool to use
-