public enum GroupProtocol extends Enum<GroupProtocol>
| Enum Constant and Description |
|---|
CLASSICClassic group protocol. |
CONSUMERConsumer group protocol |
| Modifier and Type | Field and Description |
|---|---|
String | nameString representation of the group protocol. |
| Modifier and Type | Method and Description |
|---|---|
static GroupProtocol | of(String name)Case-insensitive group protocol lookup by string name. |
static GroupProtocol | valueOf(String name)Returns the enum constant of this type with the specified name. |
static GroupProtocol[] | values()Returns an array containing the constants of this enum type, in the order they are declared. |
public static final GroupProtocol CLASSIC
public static final GroupProtocol CONSUMER
public final String name
public static GroupProtocol[] values()
for (GroupProtocol c : GroupProtocol.values()) System.out.println(c);
public static GroupProtocol 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 GroupProtocol of(String name)