Interface EventThrottlingStrategy


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

    Modifier and Type
    Method
    Description
    void
    onExceedQuota(io.tehuti.utils.Time time, String throttlerName, long currentRate, long quota, long timeWindowMS)
    This method will be executed by event throttler once the usage exceeded the quota.
  • Method Details

    • onExceedQuota

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