Package org.kie.server.client.balancer
Enum BalancerStrategy.Type
- java.lang.Object
-
- java.lang.Enum<BalancerStrategy.Type>
-
- org.kie.server.client.balancer.BalancerStrategy.Type
-
- All Implemented Interfaces:
Serializable
,Comparable<BalancerStrategy.Type>
- Enclosing interface:
- BalancerStrategy
public static enum BalancerStrategy.Type extends Enum<BalancerStrategy.Type>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description RANDOM_STRATEGY
ROUND_ROBIN_STRATEGY
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static BalancerStrategy.Type
valueOf(String name)
Returns the enum constant of this type with the specified name.static BalancerStrategy.Type[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
RANDOM_STRATEGY
public static final BalancerStrategy.Type RANDOM_STRATEGY
-
ROUND_ROBIN_STRATEGY
public static final BalancerStrategy.Type ROUND_ROBIN_STRATEGY
-
-
Method Detail
-
values
public static BalancerStrategy.Type[] 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 (BalancerStrategy.Type c : BalancerStrategy.Type.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static BalancerStrategy.Type valueOf(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:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
-