Package org.ldaptive
Class ActivePassiveConnectionStrategy
java.lang.Object
org.ldaptive.AbstractFreezable
org.ldaptive.AbstractConnectionStrategy
org.ldaptive.AbstractPassiveConnectionStrategy
org.ldaptive.ActivePassiveConnectionStrategy
- All Implemented Interfaces:
Iterable<LdapURL>,ConnectionStrategy,Freezable
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.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.ldaptive.AbstractConnectionStrategy
AbstractConnectionStrategy.DefaultLdapURLIterator -
Field Summary
FieldsModifier and TypeFieldDescriptionCustom iterator function.Fields inherited from class org.ldaptive.AbstractConnectionStrategy
ldapURLSet, logger -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor.Creates a new active passive connection strategy. -
Method Summary
Methods inherited from class org.ldaptive.AbstractPassiveConnectionStrategy
populateMethods inherited from class org.ldaptive.AbstractConnectionStrategy
failure, getActivateCondition, getRetryCondition, initialize, isInitialized, 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
-
Field Details
-
iterFunction
Custom iterator function.
-
-
Constructor Details
-
ActivePassiveConnectionStrategy
public ActivePassiveConnectionStrategy()Default constructor. -
ActivePassiveConnectionStrategy
Creates a new active passive connection strategy.- Parameters:
function- that produces a custom iterator
-
-
Method Details
-
iterator
-
newInstance
Description copied from interface:ConnectionStrategyCreate a deep copy of this strategy.- Returns:
- new instance of this connection strategy
-