@InterfaceAudience.Public @InterfaceStability.Stable public enum KeySharedMode extends Enum<KeySharedMode>
Enum Constant and Description |
---|
AUTO_SPLIT
Auto split while new consumer connected.
|
STICKY
New consumer with fixed hash range to attach the topic, if new consumer use conflict hash range with
exits consumers, new consumer will be rejected.
|
Modifier and Type | Method and Description |
---|---|
static KeySharedMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static KeySharedMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final KeySharedMode AUTO_SPLIT
public static final KeySharedMode STICKY
public static KeySharedMode[] values()
for (KeySharedMode c : KeySharedMode.values()) System.out.println(c);
public static KeySharedMode 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 nullCopyright © 2017–2021 Apache Software Foundation. All rights reserved.