public static enum LoadBalancer.Algorithm extends Enum<LoadBalancer.Algorithm>
Enum Constant and Description |
---|
ROUND_ROBIN |
UNRECOGNIZED |
Modifier and Type | Method and Description |
---|---|
static LoadBalancer.Algorithm |
fromValue(String value) |
static LoadBalancer.Algorithm |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static LoadBalancer.Algorithm[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final LoadBalancer.Algorithm ROUND_ROBIN
public static final LoadBalancer.Algorithm UNRECOGNIZED
public static LoadBalancer.Algorithm[] values()
for (LoadBalancer.Algorithm c : LoadBalancer.Algorithm.values()) System.out.println(c);
public static LoadBalancer.Algorithm valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant
with the specified nameNullPointerException
- if the argument is nullpublic static LoadBalancer.Algorithm fromValue(String value)
Copyright © 2009-2016 The Apache Software Foundation. All Rights Reserved.