public enum LoadBalancingStrategy extends Enum<LoadBalancingStrategy>
This is only relevant if you have multiple mail servers in one or more clusters. Currently, it is impossible to define different load balancing strategies for different clusters.
| Enum Constant and Description |
|---|
RANDOM_ACCESS
Randomly choose a connection pool (server) to request a connection (
Transport) object from. |
ROUND_ROBIN
Fixed sequence, looping through all available connection pools in a cluster.
|
| Modifier and Type | Field and Description |
|---|---|
static String |
RANDOM_ACCESS_REF |
static String |
ROUND_ROBIN_REF |
| Modifier and Type | Method and 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_ACCESS
Transport) object from.public static final String ROUND_ROBIN_REF
public static final String RANDOM_ACCESS_REF
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 © 2009–2025. All rights reserved.