Package org.ldaptive
Class RandomConnectionStrategy
java.lang.Object
org.ldaptive.AbstractFreezable
org.ldaptive.AbstractConnectionStrategy
org.ldaptive.RandomConnectionStrategy
- All Implemented Interfaces:
Iterable<LdapURL>,ConnectionStrategy,Freezable
Connection strategy that randomizes the list of configured URLs. A random URL ordering will be created for each
connection attempt.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.ldaptive.AbstractConnectionStrategy
AbstractConnectionStrategy.DefaultLdapURLIterator -
Field Summary
Fields inherited from class org.ldaptive.AbstractConnectionStrategy
ldapURLSet, logger -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.ldaptive.AbstractConnectionStrategy
failure, getActivateCondition, getRetryCondition, initialize, isInitialized, populate, setRetryCondition, success, toStringMethods inherited from class org.ldaptive.AbstractFreezable
assertMutable, freeze, freeze, freeze, isFrozenMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
RandomConnectionStrategy
public RandomConnectionStrategy()
-
-
Method Details
-
iterator
-
newInstance
Description copied from interface:ConnectionStrategyCreate a deep copy of this strategy.- Returns:
- new instance of this connection strategy
-