Package io.grpc.xds
Enum XdsClusterResource.CdsUpdate.LbPolicy
- java.lang.Object
-
- java.lang.Enum<XdsClusterResource.CdsUpdate.LbPolicy>
-
- io.grpc.xds.XdsClusterResource.CdsUpdate.LbPolicy
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<XdsClusterResource.CdsUpdate.LbPolicy>
- Enclosing class:
- XdsClusterResource.CdsUpdate
static enum XdsClusterResource.CdsUpdate.LbPolicy extends java.lang.Enum<XdsClusterResource.CdsUpdate.LbPolicy>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description LEAST_REQUEST
RING_HASH
ROUND_ROBIN
-
Constructor Summary
Constructors Modifier Constructor Description private
LbPolicy()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static XdsClusterResource.CdsUpdate.LbPolicy
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static XdsClusterResource.CdsUpdate.LbPolicy[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ROUND_ROBIN
public static final XdsClusterResource.CdsUpdate.LbPolicy ROUND_ROBIN
-
RING_HASH
public static final XdsClusterResource.CdsUpdate.LbPolicy RING_HASH
-
LEAST_REQUEST
public static final XdsClusterResource.CdsUpdate.LbPolicy LEAST_REQUEST
-
-
Method Detail
-
values
public static XdsClusterResource.CdsUpdate.LbPolicy[] 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 (XdsClusterResource.CdsUpdate.LbPolicy c : XdsClusterResource.CdsUpdate.LbPolicy.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static XdsClusterResource.CdsUpdate.LbPolicy 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
-
-