public enum HaMode extends Enum<HaMode>
| Enum Constant and Description |
|---|
LOADBALANCE |
NONE |
REPLICATION |
SEQUENTIAL |
| Modifier and Type | Method and Description |
|---|---|
static HaMode |
from(String value) |
abstract Optional<HostAddress> |
getAvailableHost(List<HostAddress> hostAddresses,
ConcurrentMap<HostAddress,Long> denyList,
boolean primary) |
static Optional<HostAddress> |
getAvailableHostInOrder(List<HostAddress> hostAddresses,
ConcurrentMap<HostAddress,Long> blacklist,
boolean primary) |
static HaMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static HaMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final HaMode REPLICATION
public static final HaMode SEQUENTIAL
public static final HaMode LOADBALANCE
public static final HaMode NONE
public static HaMode[] values()
for (HaMode c : HaMode.values()) System.out.println(c);
public static HaMode 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 Optional<HostAddress> getAvailableHostInOrder(List<HostAddress> hostAddresses, ConcurrentMap<HostAddress,Long> blacklist, boolean primary)
public abstract Optional<HostAddress> getAvailableHost(List<HostAddress> hostAddresses, ConcurrentMap<HostAddress,Long> denyList, boolean primary)
Copyright © 2022 SingleStore. All rights reserved.