Package edu.vt.middleware.ldap.handler
Enum ConnectionHandler.ConnectionStrategy
- java.lang.Object
-
- java.lang.Enum<ConnectionHandler.ConnectionStrategy>
-
- edu.vt.middleware.ldap.handler.ConnectionHandler.ConnectionStrategy
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<ConnectionHandler.ConnectionStrategy>
- Enclosing interface:
- ConnectionHandler
public static enum ConnectionHandler.ConnectionStrategy extends java.lang.Enum<ConnectionHandler.ConnectionStrategy>
Enum to define the type of connection strategy.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ACTIVE_PASSIVE
active-passive strategy.DEFAULT
default strategy.RANDOM
random strategy.ROUND_ROBIN
round robin strategy.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ConnectionHandler.ConnectionStrategy
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static ConnectionHandler.ConnectionStrategy[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
DEFAULT
public static final ConnectionHandler.ConnectionStrategy DEFAULT
default strategy.
-
ACTIVE_PASSIVE
public static final ConnectionHandler.ConnectionStrategy ACTIVE_PASSIVE
active-passive strategy.
-
ROUND_ROBIN
public static final ConnectionHandler.ConnectionStrategy ROUND_ROBIN
round robin strategy.
-
RANDOM
public static final ConnectionHandler.ConnectionStrategy RANDOM
random strategy.
-
-
Method Detail
-
values
public static ConnectionHandler.ConnectionStrategy[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (ConnectionHandler.ConnectionStrategy c : ConnectionHandler.ConnectionStrategy.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ConnectionHandler.ConnectionStrategy valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
-