Enum JobIntent

java.lang.Object
java.lang.Enum<JobIntent>
io.camunda.zeebe.protocol.record.intent.JobIntent
All Implemented Interfaces:
Intent, ProcessInstanceRelatedIntent, Serializable, Comparable<JobIntent>, java.lang.constant.Constable

public enum JobIntent extends Enum<JobIntent> implements ProcessInstanceRelatedIntent
  • Enum Constant Details

    • 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

      @Deprecated public static final JobIntent CANCEL
      Deprecated.
      for removal since 8.0.2, removal can only happen if we break backwards compatibility with older versions because Cancel command can still exist on log streams
    • CANCELED

      public static final JobIntent CANCELED
    • THROW_ERROR

      public static final JobIntent THROW_ERROR
    • ERROR_THROWN

      public static final JobIntent ERROR_THROWN
    • RECUR_AFTER_BACKOFF

      public static final JobIntent RECUR_AFTER_BACKOFF
    • RECURRED_AFTER_BACKOFF

      public static final JobIntent RECURRED_AFTER_BACKOFF
    • YIELD

      public static final JobIntent YIELD
    • YIELDED

      public static final JobIntent YIELDED
    • UPDATE_TIMEOUT

      public static final JobIntent UPDATE_TIMEOUT
    • TIMEOUT_UPDATED

      public static final JobIntent TIMEOUT_UPDATED
    • MIGRATED

      public static final JobIntent MIGRATED
    • UPDATE

      public static final JobIntent UPDATE
    • UPDATED

      public static final JobIntent UPDATED
  • Method Details

    • values

      public static JobIntent[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      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 name
      NullPointerException - if the argument is null
    • getIntent

      public short getIntent()
    • from

      public static Intent from(short value)
    • value

      public short value()
      Specified by:
      value in interface Intent
    • isEvent

      public boolean isEvent()
      Specified by:
      isEvent in interface Intent
      Returns:
      true if this intent is used as an event, i.e. it's not a command or command rejection.
    • shouldBanInstanceOnError

      public boolean shouldBanInstanceOnError()
      Specified by:
      shouldBanInstanceOnError in interface ProcessInstanceRelatedIntent