Package io.zeebe.protocol.record.intent
Enum DeploymentIntent
- java.lang.Object
-
- java.lang.Enum<DeploymentIntent>
-
- io.zeebe.protocol.record.intent.DeploymentIntent
-
- All Implemented Interfaces:
Intent,Serializable,Comparable<DeploymentIntent>
public enum DeploymentIntent extends Enum<DeploymentIntent> implements Intent
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CREATECREATEDDISTRIBUTEDISTRIBUTEDFULLY_DISTRIBUTED
-
Field Summary
-
Fields inherited from interface io.zeebe.protocol.record.intent.Intent
INTENT_CLASSES, NULL_VAL, UNKNOWN
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Intentfrom(short value)shortgetIntent()shortvalue()static DeploymentIntentvalueOf(String name)Returns the enum constant of this type with the specified name.static DeploymentIntent[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
CREATE
public static final DeploymentIntent CREATE
-
CREATED
public static final DeploymentIntent CREATED
-
DISTRIBUTE
public static final DeploymentIntent DISTRIBUTE
-
DISTRIBUTED
public static final DeploymentIntent DISTRIBUTED
-
FULLY_DISTRIBUTED
public static final DeploymentIntent FULLY_DISTRIBUTED
-
-
Method Detail
-
values
public static DeploymentIntent[] 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 (DeploymentIntent c : DeploymentIntent.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static DeploymentIntent valueOf(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:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
getIntent
public short getIntent()
-
from
public static Intent from(short value)
-
-