Class NoOpRateLimiter

  • All Implemented Interfaces:
    RateLimiter

    @Internal
    public class NoOpRateLimiter
    extends Object
    implements RateLimiter
    A convenience implementation of RateLimiter that does not throttle requests.
    • Constructor Detail

      • NoOpRateLimiter

        public NoOpRateLimiter()
    • Method Detail

      • acquire

        public CompletionStage<Void> acquire()
        Description copied from interface: RateLimiter
        Returns a future that is completed once another event would not exceed the rate limit. For correct functioning, the next invocation of this method should only happen after the previously returned future has been completed.
        Specified by:
        acquire in interface RateLimiter