Class Threshold


  • class Threshold
    extends Object
    Definition of a Threshold. A Threshold is defined by a number of connections over a period of seconds
    Since:
    0.9.40
    • Field Detail

      • ALLOW

        static final Threshold ALLOW
        A Threshold that is never breached
      • DENY

        static final Threshold DENY
        A Threshold that is always breached
    • Constructor Detail

      • Threshold

        Threshold​(int connections,
                  int seconds)
    • Method Detail

      • getConnections

        int getConnections()
      • getSeconds

        int getSeconds()