Enum CommandAck.AckType
- java.lang.Object
-
- java.lang.Enum<CommandAck.AckType>
-
- org.apache.pulsar.common.api.proto.CommandAck.AckType
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<CommandAck.AckType>
- Enclosing class:
- CommandAck
public static enum CommandAck.AckType extends java.lang.Enum<CommandAck.AckType>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CumulativeIndividual
-
Field Summary
Fields Modifier and Type Field Description static intCumulative_VALUEstatic intIndividual_VALUE
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetValue()static CommandAck.AckTypevalueOf(int n)Returns the enum constant of this type with the specified name.static CommandAck.AckTypevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static CommandAck.AckType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
Individual
public static final CommandAck.AckType Individual
-
Cumulative
public static final CommandAck.AckType Cumulative
-
-
Field Detail
-
Individual_VALUE
public static final int Individual_VALUE
- See Also:
- Constant Field Values
-
Cumulative_VALUE
public static final int Cumulative_VALUE
- See Also:
- Constant Field Values
-
-
Method Detail
-
values
public static CommandAck.AckType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (CommandAck.AckType c : CommandAck.AckType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CommandAck.AckType valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
getValue
public int getValue()
-
valueOf
public static CommandAck.AckType valueOf(int n)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
n- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
-