public static enum StreamCreator.LeaderLocator extends Enum<StreamCreator.LeaderLocator>
| Enum Constant and Description |
|---|
CLIENT_LOCAL
The stream leader will be on the node the client is connected to.
|
LEAST_LEADERS
The stream leader will be on the node with the least number of stream leaders.
|
RANDOM
The stream leader will be a random node of the cluster.
|
| Modifier and Type | Method and Description |
|---|---|
static StreamCreator.LeaderLocator |
from(String value) |
String |
value() |
static StreamCreator.LeaderLocator |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static StreamCreator.LeaderLocator[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final StreamCreator.LeaderLocator CLIENT_LOCAL
public static final StreamCreator.LeaderLocator RANDOM
public static final StreamCreator.LeaderLocator LEAST_LEADERS
public static StreamCreator.LeaderLocator[] values()
for (StreamCreator.LeaderLocator c : StreamCreator.LeaderLocator.values()) System.out.println(c);
public static StreamCreator.LeaderLocator 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 StreamCreator.LeaderLocator from(String value)
public String value()
Copyright © 2022 VMware, Inc. or its affiliates.. All rights reserved.