Enum Profile

java.lang.Object
java.lang.Enum<Profile>
io.camunda.zeebe.shared.Profile
All Implemented Interfaces:
Serializable, Comparable<Profile>, java.lang.constant.Constable

public enum Profile extends Enum<Profile>
A fixed set of Spring profiles. Some are application specific (broker, gateway), and others environment specific (dev, test ,prod). Here to avoid littering the code base with different hard coded strings, leading to potential errors.

You can activate application & environment profiles together, but should avoid activating two of the same category.

  • Enum Constant Details

    • BROKER

      public static final Profile BROKER
    • GATEWAY

      public static final Profile GATEWAY
    • TEST

      public static final Profile TEST
    • DEVELOPMENT

      public static final Profile DEVELOPMENT
    • PRODUCTION

      public static final Profile PRODUCTION
  • Method Details

    • values

      public static Profile[] 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 Profile 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
    • getId

      public String getId()
    • toString

      public String toString()
      Overrides:
      toString in class Enum<Profile>