Enum FailurePolicy
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite,com.google.protobuf.ProtocolMessageEnum,Serializable,Comparable<FailurePolicy>,java.lang.constant.Constable
public enum FailurePolicy
extends Enum<FailurePolicy>
implements com.google.protobuf.ProtocolMessageEnum
If there is a fatal error on the VM (e.g. exception, ``abort()``), then the policy will be applied.Protobuf enum
envoy.extensions.wasm.v3.FailurePolicy-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionAll plugins associated with the VM will return an HTTP 503 error.All plugins associated with the VM will be ignored and the filter chain will continue.New plugin instance will be created for the new request if the VM is failed.No policy is specified. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intAll plugins associated with the VM will return an HTTP 503 error.static final intAll plugins associated with the VM will be ignored and the filter chain will continue.static final intNew plugin instance will be created for the new request if the VM is failed.static final intNo policy is specified. -
Method Summary
Modifier and TypeMethodDescriptionstatic FailurePolicyforNumber(int value) static final com.google.protobuf.Descriptors.EnumDescriptorfinal com.google.protobuf.Descriptors.EnumDescriptorfinal intfinal com.google.protobuf.Descriptors.EnumValueDescriptorstatic com.google.protobuf.Internal.EnumLiteMap<FailurePolicy>static FailurePolicyvalueOf(int value) Deprecated.static FailurePolicyvalueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) Returns the enum constant of this type with the specified name.static FailurePolicyReturns the enum constant of this type with the specified name.static FailurePolicy[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
UNSPECIFIED
No policy is specified. The default policy will be used. The default policy is ``FAIL_CLOSED``.
UNSPECIFIED = 0; -
FAIL_RELOAD
New plugin instance will be created for the new request if the VM is failed. Note this will only be applied to the following failures: * ``proxy_wasm::FailState::RuntimeError`` This will fallback to the ``FAIL_CLOSED`` for all other failures.
FAIL_RELOAD = 1; -
FAIL_CLOSED
All plugins associated with the VM will return an HTTP 503 error.
FAIL_CLOSED = 2; -
FAIL_OPEN
All plugins associated with the VM will be ignored and the filter chain will continue. This makes sense when the plugin is optional.
FAIL_OPEN = 3; -
UNRECOGNIZED
-
-
Field Details
-
UNSPECIFIED_VALUE
public static final int UNSPECIFIED_VALUENo policy is specified. The default policy will be used. The default policy is ``FAIL_CLOSED``.
UNSPECIFIED = 0;- See Also:
-
FAIL_RELOAD_VALUE
public static final int FAIL_RELOAD_VALUENew plugin instance will be created for the new request if the VM is failed. Note this will only be applied to the following failures: * ``proxy_wasm::FailState::RuntimeError`` This will fallback to the ``FAIL_CLOSED`` for all other failures.
FAIL_RELOAD = 1;- See Also:
-
FAIL_CLOSED_VALUE
public static final int FAIL_CLOSED_VALUEAll plugins associated with the VM will return an HTTP 503 error.
FAIL_CLOSED = 2;- See Also:
-
FAIL_OPEN_VALUE
public static final int FAIL_OPEN_VALUEAll plugins associated with the VM will be ignored and the filter chain will continue. This makes sense when the plugin is optional.
FAIL_OPEN = 3;- See Also:
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-
getNumber
public final int getNumber()- Specified by:
getNumberin interfacecom.google.protobuf.Internal.EnumLite- Specified by:
getNumberin interfacecom.google.protobuf.ProtocolMessageEnum
-
valueOf
Deprecated.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:
value- 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 nameNullPointerException- if the argument is null
-
forNumber
- Parameters:
value- The numeric wire value of the corresponding enum entry.- Returns:
- The enum associated with the given numeric wire value.
-
internalGetValueMap
-
getValueDescriptor
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()- Specified by:
getValueDescriptorin interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptorForType
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptor
public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() -
valueOf
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:
desc- 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 nameNullPointerException- if the argument is null
-