Enum VeniceResponseStatusCategory

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<VeniceResponseStatusCategory>

    public enum VeniceResponseStatusCategory
    extends java.lang.Enum<VeniceResponseStatusCategory>
    How Venice categorizes the response status of a request: We are emitting both HttpResponseStatusCodeCategory and this enum to capture the http standard as well as the Venice specific categorization. For instance, venice considers key not found as a healthy response, but http standard would consider it a 404 (4xx) which leads to checking for both 200 and 404 to account for all healthy requests. This dimensions makes it easier to make Venice specific aggregations.
    • Method Detail

      • values

        public static VeniceResponseStatusCategory[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (VeniceResponseStatusCategory c : VeniceResponseStatusCategory.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static VeniceResponseStatusCategory valueOf​(java.lang.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:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null
      • getCategory

        public java.lang.String getCategory()