public static enum QueueBuilder.MasterLocator extends Enum<QueueBuilder.MasterLocator>
| Enum Constant and Description |
|---|
clientLocal
Deploy on the node we are connected to.
|
minMasters
Deploy on the node with the fewest masters.
|
random
Deploy on a random node.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getValue() |
static QueueBuilder.MasterLocator |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static QueueBuilder.MasterLocator[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final QueueBuilder.MasterLocator minMasters
public static final QueueBuilder.MasterLocator clientLocal
public static final QueueBuilder.MasterLocator random
public static QueueBuilder.MasterLocator[] values()
for (QueueBuilder.MasterLocator c : QueueBuilder.MasterLocator.values()) System.out.println(c);
public static QueueBuilder.MasterLocator 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 String getValue()