Annotation Type Throttle


  • @Target({METHOD,ANNOTATION_TYPE})
    @Retention(RUNTIME)
    @Inherited
    @Documented
    public @interface Throttle
    • Field Summary

      Fields 
      Modifier and Type Fields Description
      static long DefaultThreshold  
    • Optional Element Summary

      Optional Elements 
      Modifier and Type Optional Element Description
      boolean isSpELName
      name()是否SpEL字符串,默认false。
      java.lang.String name
      支持SpEL,参考EventListener.condition()。 root对象是ThrottleAdvice.EvaluationRoot
      long threshold  
      java.util.concurrent.TimeUnit[] timeUnit
      若为空则创建计数器节流器,否则创建时间节流器。
      long value  
    • Field Detail

      • DefaultThreshold

        static final long DefaultThreshold
    • Element Detail

      • value

        @AliasFor("threshold")
        long value
        Default:
        -1L
      • threshold

        @AliasFor("value")
        long threshold
        Default:
        -1L
      • isSpELName

        boolean isSpELName
        name()是否SpEL字符串,默认false。
        Default:
        false
      • timeUnit

        java.util.concurrent.TimeUnit[] timeUnit
        若为空则创建计数器节流器,否则创建时间节流器。
        Default:
        {}