Serializable
, Comparable<LoadBalancingStrategy>
public enum LoadBalancingStrategy extends Enum<LoadBalancingStrategy>
Enum Constant | Description |
---|---|
CUSTOM |
Some custom server from the list of applicable servers is used for the
request and all succeeding request..
|
NONE |
No strategy is used.
|
RANDOM |
An server for a request is chosen at random from a list of applicable
servers.
|
RANDOM_STICKY |
Some custom strategy is being used.
|
ROUND_ROBIN |
Succeeding requests are issued to succeeding servers, having used the
last on in the list of applicable servers, then the procedure is
continued with the first on in the list.
|
Modifier and Type | Method | Description |
---|---|---|
static LoadBalancingStrategy |
valueOf(String name) |
Returns the enum constant of this type with the specified name.
|
static LoadBalancingStrategy[] |
values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final LoadBalancingStrategy ROUND_ROBIN
public static final LoadBalancingStrategy RANDOM
public static final LoadBalancingStrategy RANDOM_STICKY
public static final LoadBalancingStrategy CUSTOM
public static final LoadBalancingStrategy NONE
public static LoadBalancingStrategy[] values()
for (LoadBalancingStrategy c : LoadBalancingStrategy.values()) System.out.println(c);
public static LoadBalancingStrategy 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 nullCopyright © 2018. All rights reserved.