Interface Ratelimiter

  • All Known Implementing Classes:
    LocalRatelimiter


    public interface Ratelimiter
    Can be used to implement ratelimits.
    • Method Detail

      • requestQuota

        void requestQuota​()
                   throws InterruptedException
        Blocks the requesting thread until a quota becomes available.
        Throws:
        InterruptedException - if any thread has interrupted the current thread. The interrupted status of the current thread is cleared when this exception is thrown.