Package io.zeebe.protocol.record.intent
Enum JobIntent
- java.lang.Object
-
- java.lang.Enum<JobIntent>
-
- io.zeebe.protocol.record.intent.JobIntent
-
- All Implemented Interfaces:
Intent,ProcessInstanceRelatedIntent,Serializable,Comparable<JobIntent>
public enum JobIntent extends Enum<JobIntent> implements ProcessInstanceRelatedIntent
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CANCELCANCELEDCOMPLETECOMPLETEDCREATEDERROR_THROWNFAILFAILEDRETRIES_UPDATEDTHROW_ERRORTIME_OUTTIMED_OUTUPDATE_RETRIES
-
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()booleanshouldBlacklistInstanceOnError()shortvalue()static JobIntentvalueOf(String name)Returns the enum constant of this type with the specified name.static JobIntent[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
CREATED
public static final JobIntent CREATED
-
COMPLETE
public static final JobIntent COMPLETE
-
COMPLETED
public static final JobIntent COMPLETED
-
TIME_OUT
public static final JobIntent TIME_OUT
-
TIMED_OUT
public static final JobIntent TIMED_OUT
-
FAIL
public static final JobIntent FAIL
-
FAILED
public static final JobIntent FAILED
-
UPDATE_RETRIES
public static final JobIntent UPDATE_RETRIES
-
RETRIES_UPDATED
public static final JobIntent RETRIES_UPDATED
-
CANCEL
public static final JobIntent CANCEL
-
CANCELED
public static final JobIntent CANCELED
-
THROW_ERROR
public static final JobIntent THROW_ERROR
-
ERROR_THROWN
public static final JobIntent ERROR_THROWN
-
-
Method Detail
-
values
public static JobIntent[] 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 (JobIntent c : JobIntent.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static JobIntent 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)
-
shouldBlacklistInstanceOnError
public boolean shouldBlacklistInstanceOnError()
- Specified by:
shouldBlacklistInstanceOnErrorin interfaceProcessInstanceRelatedIntent
-
-