Package net.reevik.darkest
Enum Class RoutingMode
- All Implemented Interfaces:
Serializable,Comparable<RoutingMode>,Constable
Routing mode dictates the current behaviour of the request routing.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionA side only.B side only.Enables the roll-out mode.Shadow mode is active in active mode.Shadow mode is active in passive mode. -
Method Summary
Modifier and TypeMethodDescriptionstatic RoutingModeReturns the enum constant of this class with the specified name.static RoutingMode[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
A_SIDE
A side only. All requests must be redirected to the old endpoint. -
B_SIDE
B side only. All requests must be redirected to the new endpoint. -
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
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
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
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
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 nameNullPointerException- if the argument is null
-