public enum MasterSlaveLoadBalanceAlgorithmType extends Enum<MasterSlaveLoadBalanceAlgorithmType>
Enum Constant and Description |
---|
RANDOM |
ROUND_ROBIN |
Modifier and Type | Method and Description |
---|---|
static MasterSlaveLoadBalanceAlgorithmType |
getDefaultAlgorithmType()
Get default master-slave database load-balance algorithm type.
|
static MasterSlaveLoadBalanceAlgorithmType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static MasterSlaveLoadBalanceAlgorithmType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MasterSlaveLoadBalanceAlgorithmType ROUND_ROBIN
public static final MasterSlaveLoadBalanceAlgorithmType RANDOM
public static MasterSlaveLoadBalanceAlgorithmType[] values()
for (MasterSlaveLoadBalanceAlgorithmType c : MasterSlaveLoadBalanceAlgorithmType.values()) System.out.println(c);
public static MasterSlaveLoadBalanceAlgorithmType 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 MasterSlaveLoadBalanceAlgorithmType getDefaultAlgorithmType()
Copyright © 2018. All rights reserved.