Enum MarkerType
- java.lang.Object
-
- java.lang.Enum<MarkerType>
-
- org.apache.pulsar.common.api.proto.MarkerType
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<MarkerType>
public enum MarkerType extends java.lang.Enum<MarkerType>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description REPLICATED_SUBSCRIPTION_SNAPSHOTREPLICATED_SUBSCRIPTION_SNAPSHOT_REQUESTREPLICATED_SUBSCRIPTION_SNAPSHOT_RESPONSEREPLICATED_SUBSCRIPTION_UPDATETXN_ABORTTXN_COMMITTXN_COMMITTINGUNKNOWN_MARKER
-
Field Summary
Fields Modifier and Type Field Description static intREPLICATED_SUBSCRIPTION_SNAPSHOT_REQUEST_VALUEstatic intREPLICATED_SUBSCRIPTION_SNAPSHOT_RESPONSE_VALUEstatic intREPLICATED_SUBSCRIPTION_SNAPSHOT_VALUEstatic intREPLICATED_SUBSCRIPTION_UPDATE_VALUEstatic intTXN_ABORT_VALUEstatic intTXN_COMMIT_VALUEstatic intTXN_COMMITTING_VALUEstatic intUNKNOWN_MARKER_VALUE
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetValue()static MarkerTypevalueOf(int n)Returns the enum constant of this type with the specified name.static MarkerTypevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static MarkerType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
UNKNOWN_MARKER
public static final MarkerType UNKNOWN_MARKER
-
REPLICATED_SUBSCRIPTION_SNAPSHOT_REQUEST
public static final MarkerType REPLICATED_SUBSCRIPTION_SNAPSHOT_REQUEST
-
REPLICATED_SUBSCRIPTION_SNAPSHOT_RESPONSE
public static final MarkerType REPLICATED_SUBSCRIPTION_SNAPSHOT_RESPONSE
-
REPLICATED_SUBSCRIPTION_SNAPSHOT
public static final MarkerType REPLICATED_SUBSCRIPTION_SNAPSHOT
-
REPLICATED_SUBSCRIPTION_UPDATE
public static final MarkerType REPLICATED_SUBSCRIPTION_UPDATE
-
TXN_COMMITTING
public static final MarkerType TXN_COMMITTING
-
TXN_COMMIT
public static final MarkerType TXN_COMMIT
-
TXN_ABORT
public static final MarkerType TXN_ABORT
-
-
Field Detail
-
UNKNOWN_MARKER_VALUE
public static final int UNKNOWN_MARKER_VALUE
- See Also:
- Constant Field Values
-
REPLICATED_SUBSCRIPTION_SNAPSHOT_REQUEST_VALUE
public static final int REPLICATED_SUBSCRIPTION_SNAPSHOT_REQUEST_VALUE
- See Also:
- Constant Field Values
-
REPLICATED_SUBSCRIPTION_SNAPSHOT_RESPONSE_VALUE
public static final int REPLICATED_SUBSCRIPTION_SNAPSHOT_RESPONSE_VALUE
- See Also:
- Constant Field Values
-
REPLICATED_SUBSCRIPTION_SNAPSHOT_VALUE
public static final int REPLICATED_SUBSCRIPTION_SNAPSHOT_VALUE
- See Also:
- Constant Field Values
-
REPLICATED_SUBSCRIPTION_UPDATE_VALUE
public static final int REPLICATED_SUBSCRIPTION_UPDATE_VALUE
- See Also:
- Constant Field Values
-
TXN_COMMITTING_VALUE
public static final int TXN_COMMITTING_VALUE
- See Also:
- Constant Field Values
-
TXN_COMMIT_VALUE
public static final int TXN_COMMIT_VALUE
- See Also:
- Constant Field Values
-
TXN_ABORT_VALUE
public static final int TXN_ABORT_VALUE
- See Also:
- Constant Field Values
-
-
Method Detail
-
values
public static MarkerType[] 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 (MarkerType c : MarkerType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static MarkerType 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 MarkerType 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
-
-