Enum Class RoutingMode

java.lang.Object
java.lang.Enum<RoutingMode>
net.reevik.darkest.RoutingMode
All Implemented Interfaces:
Serializable, Comparable<RoutingMode>, Constable

public enum RoutingMode extends Enum<RoutingMode>
Routing mode dictates the current behaviour of the request routing.
  • Enum Constant Details

    • A_SIDE

      public static final RoutingMode A_SIDE
      A side only. All requests must be redirected to the old endpoint.
    • B_SIDE

      public static final RoutingMode B_SIDE
      B side only. All requests must be redirected to the new endpoint.
    • SHADOW_MODE_PASSIVE

      public static final RoutingMode SHADOW_MODE_PASSIVE
      Shadow mode is active in passive mode. Both endpoints will be simultaneously called and response objects will be analysed. The result of the analysis will be reported through monitoring integration. Nevertheless, the response from the old endpoint will be returned.
    • SHADOW_MODE_ACTIVE

      public static final RoutingMode SHADOW_MODE_ACTIVE
      Shadow mode is active in active mode. Both endpoints will be simultaneously called and response objects will be analysed. The result of the analysis will be reported through monitoring integration. Finally, the response from the new endpoint will be returned.
    • ROLL_OUT

      public static final RoutingMode ROLL_OUT
      Enables the roll-out mode. Depending on the routing condition, the request will be routed either to the old or new endpoint.
  • Method Details

    • values

      public static RoutingMode[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static RoutingMode valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified name
      NullPointerException - if the argument is null