Package org.ldaptive

Class ActivePassiveConnectionStrategy

  • All Implemented Interfaces:
    Iterable<LdapURL>, ConnectionStrategy

    public class ActivePassiveConnectionStrategy
    extends AbstractConnectionStrategy
    Connection strategy that attempts hosts ordered exactly the way they are configured. This means that the first host will always be attempted first, followed by each host in the list.
    • Constructor Detail

      • ActivePassiveConnectionStrategy

        public ActivePassiveConnectionStrategy()
        Default constructor.
      • ActivePassiveConnectionStrategy

        public ActivePassiveConnectionStrategy​(Function<List<LdapURL>,​Iterator<LdapURL>> function)
        Creates a new active passive connection strategy.
        Parameters:
        function - that produces a custom iterator