public static enum StreamCreator.LeaderLocator extends Enum<StreamCreator.LeaderLocator>
| Enum Constant and Description |
|---|
BALANCED
The leader will be the node hosting the minimum number of stream leaders, if there are
overall less than 1000 queues, or a random node, if there are overall more than 1000 queues.
|
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
This is the default value.
public static final StreamCreator.LeaderLocator BALANCED
Available as of RabbitMQ 3.10.
Default value for RabbitMQ 3.10+.
public static final StreamCreator.LeaderLocator RANDOM
Deprecated as of RabbitMQ 3.10, same as BALANCED.
public static final StreamCreator.LeaderLocator LEAST_LEADERS
Deprecated as of RabbitMQ 3.10, same as BALANCED.
Default value for RabbitMQ 3.9.
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 © 2024 Broadcom Inc. and/or its subsidiaries. All rights reserved.