public static enum MultiplexerConfig.LoadBalancer extends Enum<MultiplexerConfig.LoadBalancer>
Enum Constant and Description |
---|
LEAST_CLIENTS
This algorithm guarantees fairness across the Multiplexers.
|
ROUND_ROBIN
This algorithm is fast, although can not guarantee fairness of the
connections per multiplexer due to the randomness of disconnections.
|
Modifier and Type | Method and Description |
---|---|
static MultiplexerConfig.LoadBalancer |
fromString(String symbol)
Returns load balancer enum from string representation.
|
static MultiplexerConfig.LoadBalancer |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static MultiplexerConfig.LoadBalancer[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MultiplexerConfig.LoadBalancer ROUND_ROBIN
public static final MultiplexerConfig.LoadBalancer LEAST_CLIENTS
public static MultiplexerConfig.LoadBalancer[] values()
for (MultiplexerConfig.LoadBalancer c : MultiplexerConfig.LoadBalancer.values()) System.out.println(c);
public static MultiplexerConfig.LoadBalancer 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 MultiplexerConfig.LoadBalancer fromString(String symbol)
symbol
- load balancer name with or without underline character,
match is case insensitiveCopyright © 2016 Push Technology Ltd. All Rights Reserved.