Package org.forgerock.opendj.io
Interface LdapSocketConnector
-
- All Superinterfaces:
AutoCloseable
,Closeable
public interface LdapSocketConnector extends Closeable
An LDAP socket connector provides a newLdapSocket
connected to a peer each time it is subscribed.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
close()
Releases any resources associated with this connector.io.reactivex.Single<LdapSocket>
connect()
Returns aSingle
which connects to a peer each time it is subscribed.
-
-
-
Method Detail
-
connect
io.reactivex.Single<LdapSocket> connect()
Returns aSingle
which connects to a peer each time it is subscribed.- Returns:
- A
Single
which connects to a peer each time it is subscribed.
-
close
void close()
Releases any resources associated with this connector. Previously connected sockets will not be impacted. Subsequent attempts to connect will fail with anIllegalStateException
.Calling this method on a connector that is already closed has no effect.
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
-
-