public interface LDAPConnectionFactoryImpl extends Closeable
LDAPConnectionFactory.
An implementation class is provided by a TransportProvider.
The implementation can be automatically loaded using the
java.util.ServiceLoader facility if its provider extending
TransportProvider is declared in the provider-configuration file
META-INF/services/org.forgerock.opendj.ldap.spi.TransportProvider.
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Releases any resources associated with this connection factory implementation.
|
org.forgerock.util.promise.Promise<LDAPConnectionImpl,LdapException> |
getConnectionAsync()
Asynchronously obtains a connection to the Directory Server associated
with this connection factory.
|
String |
getHostName()
Returns the hostname used by the connections created by this factory.
|
int |
getPort()
Returns the remote port number used by the connections created by this factory.
|
InetSocketAddress |
getSocketAddress()
Returns the address used by the connections created by this factory.
|
InetSocketAddress getSocketAddress()
String getHostName()
int getPort()
void close()
close in interface AutoCloseableclose in interface Closeableorg.forgerock.util.promise.Promise<LDAPConnectionImpl,LdapException> getConnectionAsync()
Promise can be used to
retrieve the completed connection.Copyright © 2017-2020 Wren Security. All Rights Reserved.