Enum DeploymentIntent

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

public enum DeploymentIntent extends Enum<DeploymentIntent> implements Intent
  • Enum Constant Details

    • CREATE

      public static final DeploymentIntent CREATE
    • CREATED

      public static final DeploymentIntent CREATED
    • DISTRIBUTE

      @Deprecated public static final DeploymentIntent DISTRIBUTE
      Deprecated.
      Intent related to distribution are deprecated as of 8.3.0. A generalised way of distributing commands has been introduced in this version. The DeploymentCreateProcessor is now using this new way. This intent only remains to stay backwards compatible.
    • DISTRIBUTED

      @Deprecated public static final DeploymentIntent DISTRIBUTED
      Deprecated.
    • FULLY_DISTRIBUTED

      @Deprecated public static final DeploymentIntent FULLY_DISTRIBUTED
      Deprecated.
  • Method Details

    • values

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