Interface RateLimiter

All Known Implementing Classes:
RedissonRateLimiter

public interface RateLimiter
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Acquires a permit from this RateLimiter, blocking until one is available.
  • Method Details

    • acquire

      void acquire()
      Acquires a permit from this RateLimiter, blocking until one is available.

      Acquires a permit, if one is available and returns immediately, reducing the number of available permits by one.