public enum SimpleLB extends Enum<SimpleLB>
| Enum Constant and Description |
|---|
LEAST_CONN
The least request load balancer uses an O(1) algorithm which selects
two random healthy hosts and picks the host which has fewer active
requests.
|
PASSTHROUGH
This option will forward the connection to the original IP address
requested by the caller without doing any form of load
balancing.
|
RANDOM
The random load balancer selects a random healthy host.
|
ROUND_ROBIN
Round Robin policy.
|
| Modifier and Type | Method and Description |
|---|---|
int |
value() |
static SimpleLB |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SimpleLB[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SimpleLB ROUND_ROBIN
public static final SimpleLB LEAST_CONN
public static final SimpleLB RANDOM
public static final SimpleLB PASSTHROUGH
public static SimpleLB[] values()
for (SimpleLB c : SimpleLB.values()) System.out.println(c);
public static SimpleLB 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 int value()
Copyright © 2017–2018 Red Hat. All rights reserved.