Enum IncidentIntent

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

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

  • Method Details

    • values

      public static IncidentIntent[] 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 IncidentIntent 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