Interface Ratelimiter

  • All Known Implementing Classes:

    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.
        InterruptedException - if any thread has interrupted the current thread. The interrupted status of the current thread is cleared when this exception is thrown.