Class AcquireResponse

    • Method Detail

      • maxCapacity

        public int maxCapacity()
        The max capacity.
      • capacityRequested

        public int capacityRequested()
        The numbers of token requested by the last token acquisition.
      • capacityAcquired

        public int capacityAcquired()
        The number of tokens acquired by the last token acquisition.
      • capacityRemaining

        public int capacityRemaining()
        The number of tokens in the token bucket.
      • acquisitionFailed

        public boolean acquisitionFailed()
        Returns true if the requested capacity was not successfully acquired.