Package org.ldaptive

Class RoundRobinConnectionStrategy

  • All Implemented Interfaces:
    java.lang.Iterable<LdapURL>, ConnectionStrategy

    public class RoundRobinConnectionStrategy
    extends AbstractConnectionStrategy
    Connection strategy that reorders its URLs based on the number of times it's been invoked.
    Author:
    Middleware Services
    • Constructor Detail

      • RoundRobinConnectionStrategy

        public RoundRobinConnectionStrategy()
        Default constructor.
      • RoundRobinConnectionStrategy

        public RoundRobinConnectionStrategy​(java.util.function.Function<java.util.List<LdapURL>,​java.util.Iterator<LdapURL>> function)
        Creates a new round robin connection strategy.
        Parameters:
        function - that produces a custom iterator