Enum TransactionMetadataEntry.TransactionMetadataOp
- java.lang.Object
-
- java.lang.Enum<TransactionMetadataEntry.TransactionMetadataOp>
-
- org.apache.pulsar.transaction.coordinator.proto.TransactionMetadataEntry.TransactionMetadataOp
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<TransactionMetadataEntry.TransactionMetadataOp>
- Enclosing class:
- TransactionMetadataEntry
public static enum TransactionMetadataEntry.TransactionMetadataOp extends java.lang.Enum<TransactionMetadataEntry.TransactionMetadataOp>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ADD_PARTITIONADD_SUBSCRIPTIONNEWUPDATE
-
Field Summary
Fields Modifier and Type Field Description static intADD_PARTITION_VALUEstatic intADD_SUBSCRIPTION_VALUEstatic intNEW_VALUEstatic intUPDATE_VALUE
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetValue()static TransactionMetadataEntry.TransactionMetadataOpvalueOf(int n)Returns the enum constant of this type with the specified name.static TransactionMetadataEntry.TransactionMetadataOpvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static TransactionMetadataEntry.TransactionMetadataOp[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NEW
public static final TransactionMetadataEntry.TransactionMetadataOp NEW
-
ADD_PARTITION
public static final TransactionMetadataEntry.TransactionMetadataOp ADD_PARTITION
-
ADD_SUBSCRIPTION
public static final TransactionMetadataEntry.TransactionMetadataOp ADD_SUBSCRIPTION
-
UPDATE
public static final TransactionMetadataEntry.TransactionMetadataOp UPDATE
-
-
Field Detail
-
NEW_VALUE
public static final int NEW_VALUE
- See Also:
- Constant Field Values
-
ADD_PARTITION_VALUE
public static final int ADD_PARTITION_VALUE
- See Also:
- Constant Field Values
-
ADD_SUBSCRIPTION_VALUE
public static final int ADD_SUBSCRIPTION_VALUE
- See Also:
- Constant Field Values
-
UPDATE_VALUE
public static final int UPDATE_VALUE
- See Also:
- Constant Field Values
-
-
Method Detail
-
values
public static TransactionMetadataEntry.TransactionMetadataOp[] 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 (TransactionMetadataEntry.TransactionMetadataOp c : TransactionMetadataEntry.TransactionMetadataOp.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static TransactionMetadataEntry.TransactionMetadataOp 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 TransactionMetadataEntry.TransactionMetadataOp 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
-
-