ApiFrontendLimits

com.google.api.server.spi.config

Annotation Type ApiFrontendLimits



  • @Retention(value=RUNTIME)
     @Target(value=TYPE)
    public @interface ApiFrontendLimits
    Annotation for configuration of API quota frontend limits. These are the limits applied to unregistered users of your API.
    • Optional Element Summary

      Optional Elements 
      Modifier and Type Optional Element and Description
      ApiFrontendLimitRule[] rules
      Sets custom rules for unregistered traffic to your API.
      int unregisteredDaily
      Sets the maximum number of requests per day for unregistered access to your API.
      int unregisteredQps
      Sets the maximum number of queries per second across all unregistered access to your API.
      int unregisteredUserQps
      Sets the number of queries per second an unregistered user can make against your API.
    • Element Detail

      • unregisteredUserQps

        public abstract int unregisteredUserQps
        Sets the number of queries per second an unregistered user can make against your API. The default is unlimited. If unauthenticated, each IP address is treated as a distinct user.
        Default:
        -2147483648
      • unregisteredQps

        public abstract int unregisteredQps
        Sets the maximum number of queries per second across all unregistered access to your API. The default is unlimited.
        Default:
        -2147483648
      • unregisteredDaily

        public abstract int unregisteredDaily
        Sets the maximum number of requests per day for unregistered access to your API. The default is unlimited.
        Default:
        -2147483648