Class PriorityCalculator.ThrottleLimitSpec

  • Enclosing class:
    PriorityCalculator

    protected static class PriorityCalculator.ThrottleLimitSpec
    extends java.lang.Object
    This is a class which describes an individual throttle limit, in fetches per millisecond.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected double maxRate
      The fetch limit for all bins matching that regexp, in fetches per millisecond
      protected java.util.regex.Pattern regexp
      Regexp
    • Constructor Summary

      Constructors 
      Constructor Description
      ThrottleLimitSpec​(java.lang.String regexp, double maxRate)
      Constructor
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      double getMaxRate()
      Get the max count
      java.util.regex.Pattern getRegexp()
      Get the regexp.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • regexp

        protected final java.util.regex.Pattern regexp
        Regexp
      • maxRate

        protected final double maxRate
        The fetch limit for all bins matching that regexp, in fetches per millisecond
    • Constructor Detail

      • ThrottleLimitSpec

        public ThrottleLimitSpec​(java.lang.String regexp,
                                 double maxRate)
                          throws java.util.regex.PatternSyntaxException
        Constructor
        Throws:
        java.util.regex.PatternSyntaxException
    • Method Detail

      • getRegexp

        public java.util.regex.Pattern getRegexp()
        Get the regexp.
      • getMaxRate

        public double getMaxRate()
        Get the max count