public enum KeySharedMode extends Enum<KeySharedMode>
枚举常量和说明 |
---|
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.
|
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
- 要返回的枚举常量的名称。IllegalArgumentException
- 如果该枚举类型没有带有指定名称的常量NullPointerException
- 如果参数为空值Copyright © 2017–2020 Apache Software Foundation. All rights reserved.