Class ThrottleDescription.ThrottleItem

  • Enclosing class:
    ThrottleDescription

    protected static class ThrottleDescription.ThrottleItem
    extends java.lang.Object
    Class representing an individual throttle item.
    • Field Detail

      • pattern

        protected final java.util.regex.Pattern pattern
        The bin-matching pattern.
      • minimumMillisecondsPerByte

        protected java.lang.Double minimumMillisecondsPerByte
        The minimum milliseconds between bytes, or null if no limit.
      • minimumMillisecondsPerFetch

        protected java.lang.Long minimumMillisecondsPerFetch
        The minimum milliseconds per fetch, or null if no limit
      • maxOpenConnections

        protected java.lang.Integer maxOpenConnections
        The maximum open connections, or null if no limit.
    • Constructor Detail

      • ThrottleItem

        public ThrottleItem​(java.util.regex.Pattern p)
        Constructor.
    • Method Detail

      • getPattern

        public java.util.regex.Pattern getPattern()
        Get the pattern.
      • setMinimumMillisecondsPerByte

        public void setMinimumMillisecondsPerByte​(java.lang.Double value)
        Set minimum milliseconds per byte.
      • getMinimumMillisecondsPerByte

        public java.lang.Double getMinimumMillisecondsPerByte()
        Get minimum milliseconds per byte.
      • setMinimumMillisecondsPerFetch

        public void setMinimumMillisecondsPerFetch​(java.lang.Long value)
        Set minimum milliseconds per fetch
      • getMinimumMillisecondsPerFetch

        public java.lang.Long getMinimumMillisecondsPerFetch()
        Get minimum milliseconds per fetch
      • setMaxOpenConnections

        public void setMaxOpenConnections​(java.lang.Integer value)
        Set maximum open connections.
      • getMaxOpenConnections

        public java.lang.Integer getMaxOpenConnections()
        Get maximum open connections.