Interface EventThrottlingStrategy


  • public interface EventThrottlingStrategy
    This interface is used to abstract the strategy to handle the quota exceeding case.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void onExceedQuota​(io.tehuti.utils.Time time, java.lang.String throttlerName, long currentRate, long quota, long timeWindowMS)
      This method will be executed by event throttler once the usage exceeded the quota.
    • Method Detail

      • onExceedQuota

        void onExceedQuota​(io.tehuti.utils.Time time,
                           java.lang.String throttlerName,
                           long currentRate,
                           long quota,
                           long timeWindowMS)
        This method will be executed by event throttler once the usage exceeded the quota.