public enum HostSelectorStrategy extends java.lang.Enum<HostSelectorStrategy>
AbstractHostPartitionConnectionPool.executeWithFailover(com.netflix.astyanax.connectionpool.Operation, com.netflix.astyanax.retry.RetryPolicy)
for details on how the strategy is consulted when executing an operation with a specific operation failover strategy.| Enum Constant and Description |
|---|
LEAST_OUTSTANDING |
ROUND_ROBIN |
| Modifier and Type | Method and Description |
|---|---|
static HostSelectorStrategy |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static HostSelectorStrategy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final HostSelectorStrategy ROUND_ROBIN
public static final HostSelectorStrategy LEAST_OUTSTANDING
public static HostSelectorStrategy[] values()
for (HostSelectorStrategy c : HostSelectorStrategy.values()) System.out.println(c);
public static HostSelectorStrategy valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant
with the specified namejava.lang.NullPointerException - if the argument is null