Enum Class LdaptiveConnectionProperties.ConnectionStrategy
java.lang.Object
java.lang.Enum<LdaptiveConnectionProperties.ConnectionStrategy>
org.bremersee.spring.boot.autoconfigure.ldaptive.LdaptiveConnectionProperties.ConnectionStrategy
- All Implemented Interfaces:
Serializable,Comparable<LdaptiveConnectionProperties.ConnectionStrategy>,Constable
- Enclosing class:
LdaptiveConnectionProperties
public static enum LdaptiveConnectionProperties.ConnectionStrategy
extends Enum<LdaptiveConnectionProperties.ConnectionStrategy>
The connection strategy.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionAttempt each URL in the order provided for each connection.Queries a DNS server for SRV records and uses those records to construct a list of URLs.Attempt a random URL from a list of URLs.Attempt the next URL in the order provided for each connection. -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ACTIVE_PASSIVE
Attempt each URL in the order provided for each connection. The URLs are always tried in the order in which they were provided. -
RANDOM
Attempt a random URL from a list of URLs. -
ROUND_ROBIN
Attempt the next URL in the order provided for each connection. URLs are rotated regardless of connection success or failure. -
DNS
Queries a DNS server for SRV records and uses those records to construct a list of URLs. When configuring this strategy you must use your DNS server forsetLdapUrl(String)in the formdns://my.server.com.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-