public enum LoadBalanceEnum extends java.lang.Enum<LoadBalanceEnum>
| Enum Constant and Description |
|---|
HASH
Hash load balance enum.
|
LEAST_ACTIVITY
least activity load balance enum.
|
P2C
pick of 2 choices load balance enum.
|
RANDOM
Random load balance enum.
|
ROUND_ROBIN
Round robin load balance enum.
|
SHORTEST_RESPONSE
shortest response load balance enum.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getCode()
get code.
|
java.lang.String |
getName()
get name.
|
boolean |
isSupport()
get support.
|
static LoadBalanceEnum |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static LoadBalanceEnum[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final LoadBalanceEnum HASH
public static final LoadBalanceEnum RANDOM
public static final LoadBalanceEnum ROUND_ROBIN
public static final LoadBalanceEnum LEAST_ACTIVITY
public static final LoadBalanceEnum P2C
public static final LoadBalanceEnum SHORTEST_RESPONSE
public static LoadBalanceEnum[] values()
for (LoadBalanceEnum c : LoadBalanceEnum.values()) System.out.println(c);
public static LoadBalanceEnum valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic int getCode()
public java.lang.String getName()
public boolean isSupport()
Copyright © 2024 The Apache Software Foundation. All rights reserved.