Enum Class TransactionMetadataEntry.TransactionMetadataOp
java.lang.Object
java.lang.Enum<TransactionMetadataEntry.TransactionMetadataOp>
org.apache.pulsar.transaction.coordinator.proto.TransactionMetadataEntry.TransactionMetadataOp
- All Implemented Interfaces:
Serializable,Comparable<TransactionMetadataEntry.TransactionMetadataOp>,Constable
- Enclosing class:
- TransactionMetadataEntry
public static enum TransactionMetadataEntry.TransactionMetadataOp
extends Enum<TransactionMetadataEntry.TransactionMetadataOp>
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final int -
Method Summary
-
Enum Constant Details
-
NEW
-
ADD_PARTITION
-
ADD_SUBSCRIPTION
-
UPDATE
-
-
Field Details
-
NEW_VALUE
public static final int NEW_VALUE- See Also:
-
ADD_PARTITION_VALUE
public static final int ADD_PARTITION_VALUE- See Also:
-
ADD_SUBSCRIPTION_VALUE
public static final int ADD_SUBSCRIPTION_VALUE- See Also:
-
UPDATE_VALUE
public static final int UPDATE_VALUE- See Also:
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
getValue
public int getValue() -
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-