Class CentralizedReservoir


  • public class CentralizedReservoir
    extends java.lang.Object
    • Constructor Detail

      • CentralizedReservoir

        public CentralizedReservoir​(long capacity)
    • Method Detail

      • isExpired

        public boolean isExpired​(java.time.Instant now)
      • isBorrow

        public boolean isBorrow​(java.time.Instant now)
      • isStale

        public boolean isStale​(java.time.Instant now)
      • take

        public boolean take​(java.time.Instant now)
      • getQuota

        public long getQuota()
      • getUsed

        public long getUsed()
      • getCurrentEpoch

        public long getCurrentEpoch()
      • getInterval

        public long getInterval()