Enum FailurePolicy

java.lang.Object
java.lang.Enum<FailurePolicy>
io.envoyproxy.envoy.extensions.wasm.v3.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
  • Enum Constant Details

    • UNSPECIFIED

      public static final FailurePolicy UNSPECIFIED
       No policy is specified. The default policy will be used. The default policy is ``FAIL_CLOSED``.
       
      UNSPECIFIED = 0;
    • FAIL_RELOAD

      public static final FailurePolicy 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

      public static final FailurePolicy FAIL_CLOSED
       All plugins associated with the VM will return an HTTP 503 error.
       
      FAIL_CLOSED = 2;
    • FAIL_OPEN

      public static final FailurePolicy 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

      public static final FailurePolicy UNRECOGNIZED
  • Field Details

    • UNSPECIFIED_VALUE

      public static final int UNSPECIFIED_VALUE
       No 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_VALUE
       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;
      See Also:
    • FAIL_CLOSED_VALUE

      public static final int FAIL_CLOSED_VALUE
       All 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_VALUE
       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;
      See Also:
  • Method Details

    • values

      public static FailurePolicy[] 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 FailurePolicy 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
    • getNumber

      public final int getNumber()
      Specified by:
      getNumber in interface com.google.protobuf.Internal.EnumLite
      Specified by:
      getNumber in interface com.google.protobuf.ProtocolMessageEnum
    • valueOf

      @Deprecated public static FailurePolicy valueOf(int value)
      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 name
      NullPointerException - if the argument is null
    • forNumber

      public static FailurePolicy forNumber(int value)
      Parameters:
      value - The numeric wire value of the corresponding enum entry.
      Returns:
      The enum associated with the given numeric wire value.
    • internalGetValueMap

      public static com.google.protobuf.Internal.EnumLiteMap<FailurePolicy> internalGetValueMap()
    • getValueDescriptor

      public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
      Specified by:
      getValueDescriptor in interface com.google.protobuf.ProtocolMessageEnum
    • getDescriptorForType

      public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.ProtocolMessageEnum
    • getDescriptor

      public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
    • valueOf

      public static FailurePolicy valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
      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 name
      NullPointerException - if the argument is null