Class RateLimit

    • Field Detail

      • calls

        public int calls
      • timeSpan

        public int timeSpan
    • Constructor Detail

      • RateLimit

        public RateLimit()
        Constructor
      • RateLimit

        public RateLimit​(int calls,
                         int timeSpan,
                         TimeUnit timeUnit)
        Constructor
        Parameters:
        calls -
        timeSpan -
        timeUnit -
    • Method Detail

      • getPollDelayMillis

        public long getPollDelayMillis()
        Returns:
        this rate limit as a number of milliseconds required between any two remote calls, assuming the client makes consecutive calls without any bursts or breaks for an infinite period of time.