Package org.ldaptive

Class ActivePassiveConnectionStrategy

All Implemented Interfaces:
Iterable<LdapURL>, ConnectionStrategy, Freezable

public class ActivePassiveConnectionStrategy extends AbstractPassiveConnectionStrategy
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.
  • Field Details

  • Constructor Details

    • 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
  • Method Details