Interface RateLimiter.IRateLimitObserver

Enclosing class:
RateLimiter

public static interface RateLimiter.IRateLimitObserver
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    onRateLimitChanged(@NotNull RateLimiter rateLimiter)
    Invoked whenever the rate limit changed.
  • Method Details

    • onRateLimitChanged

      void onRateLimitChanged(@NotNull @NotNull RateLimiter rateLimiter)
      Invoked whenever the rate limit changed. You should use RateLimiter.isActiveForCategory(DataCategory) to check whether the category you're interested in has changed.
      Parameters:
      rateLimiter - this RateLimiter instance which you can use to check if the rate limit is active for a specific category