Annotation Type Throttle


  • @Retention(RUNTIME)
    public @interface Throttle
    Annotation is used to limit the number of requests that the framework is allowed to produce within the duration.

    • Optional Element Summary

      Optional Elements 
      Modifier and Type Optional Element Description
      int durationInMins
      Duration in minutes in which the throttling is active.
      int rps
      Max.
    • Element Detail

      • durationInMins

        int durationInMins
        Duration in minutes in which the throttling is active.

        Returns:
        Throttling duration.
        Default:
        -1
      • rps

        int rps
        Max. number of requests.
        Returns:
        Maximum number of requests.
        Default:
        100