Package org.ldaptive

Class ActivePassiveConnectionStrategy

java.lang.Object
org.ldaptive.AbstractConnectionStrategy
org.ldaptive.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.
  • 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