Enum QuotaResponse.Status

    • Enum Constant Detail

      • NO_OP

        public static final QuotaResponse.Status NO_OP
        The quota succeeded, but was a no-op because the plugin does not enforce this quota group (equivalent to OK, but relevant for debugging).
      • ERROR

        public static final QuotaResponse.Status ERROR
        The requested quota could not be allocated. This status code is not used to indicate processing failures as these are propagated as RuntimeExceptions.
    • Method Detail

      • values

        public static QuotaResponse.Status[] 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 (QuotaResponse.Status c : QuotaResponse.Status.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static QuotaResponse.Status 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
      • isOk

        public boolean isOk()
      • isError

        public boolean isError()