Class SpeedTokenDispenserPrioritised

    • Field Detail

      • rateKiB

        private int rateKiB
      • threshold

        private long threshold
      • bucket

        private long bucket
      • lastTime

        private long lastTime
      • currentTime

        private long currentTime
      • BUCKET_THRESHOLD_LOWER_BOUND

        private static final int BUCKET_THRESHOLD_LOWER_BOUND
        See Also:
        Constant Field Values
      • BUCKET_THRESHOLD_FACTOR

        private static final int BUCKET_THRESHOLD_FACTOR
        See Also:
        Constant Field Values
    • Constructor Detail

      • SpeedTokenDispenserPrioritised

        public SpeedTokenDispenserPrioritised()
    • Method Detail

      • update

        public void update​(long newTime)
      • refill

        public void refill()