Class LDAPUtils.FailoverLdapClient

    • Constructor Detail

      • FailoverLdapClient

        public FailoverLdapClient​(List<LdapClient> clients)
        Constructor.
        Parameters:
        clients - Client list
    • Method Detail

      • connect

        public io.reactivex.rxjava3.core.Single<LdapClientSocket> connect()
        Description copied from interface: LdapClient
        Returns a Single which connects to a peer each time it is subscribed.
        Specified by:
        connect in interface LdapClient
        Returns:
        A Single which connects to a peer each time it is subscribed.
      • close

        public void close()
        Description copied from interface: LdapClient
        Releases any resources associated with this LDAP client. Depending on the implementation an LDAP client may:
        • do nothing
        • close underlying LDAP clients (e.g. load-balancers)
        • close pooled connections (e.g. connection pools)
        • shutdown IO event service and related thread pools.
        Calling close on an LDAP client which is already closed has no effect.

        Applications should avoid closing LDAP clients while there are remaining active sockets in use or connection attempts in progress.

        Specified by:
        close in interface AutoCloseable
        Specified by:
        close in interface Closeable
        Specified by:
        close in interface LdapClient