Interface Ratelimiter

  • All Known Implementing Classes:
    LocalRatelimiter

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

      • requestQuota

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