@PublicEvolving public enum TopicRoutingMode extends Enum<TopicRoutingMode> implements org.apache.flink.configuration.DescribedEnum
| Enum Constant and Description |
|---|
CUSTOM
Use custom topic router implementation that will be called to determine the partition for a
particular message.
|
MESSAGE_KEY_HASH
If no key is provided, The partitioned producer will randomly pick one single topic partition
and publish all the messages into that partition.
|
ROUND_ROBIN
The producer will publish messages across all partitions in a round-robin fashion to achieve
maximum throughput.
|
| Modifier and Type | Method and Description |
|---|---|
org.apache.flink.configuration.description.InlineElement |
getDescription() |
String |
toString() |
static TopicRoutingMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TopicRoutingMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TopicRoutingMode ROUND_ROBIN
public static final TopicRoutingMode MESSAGE_KEY_HASH
public static final TopicRoutingMode CUSTOM
public static TopicRoutingMode[] values()
for (TopicRoutingMode c : TopicRoutingMode.values()) System.out.println(c);
public static TopicRoutingMode 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 null@Internal public org.apache.flink.configuration.description.InlineElement getDescription()
getDescription in interface org.apache.flink.configuration.DescribedEnumpublic String toString()
toString in class Enum<TopicRoutingMode>Copyright © 2014–2022 The Apache Software Foundation. All rights reserved.