Annotation Type RateLimitingDecorator


@Repeatable(RateLimitingDecorators.class)
@Retention(RUNTIME)
@Target({TYPE,METHOD})
public @interface RateLimitingDecorator
A ThrottlingService decorator for annotated HTTP services.
  • Optional Element Summary

    Optional Elements 
    Modifier and Type Optional Element Description
    String name
    The name of the configured ThrottlingStrategy.
    int order
    The order of decoration, where a Decorator of lower value will be applied first.
    double value
    The number of requests per one second that the configured ThrottlingStrategy accepts.
  • Element Details

    • value

      double value
      The number of requests per one second that the configured ThrottlingStrategy accepts.
      Default:
      1.7976931348623157E308
    • name

      String name
      The name of the configured ThrottlingStrategy.
      Default:
      "\n\t\t\n\t\t\n\u0000\u0001\u0002\n\t\t\t\t\n"
    • order

      int order
      The order of decoration, where a Decorator of lower value will be applied first.
      Default:
      0