net.i2p.i2ptunnel.access

## Class Threshold

- java.lang.Object
- - net.i2p.i2ptunnel.access.Threshold

-     class Threshold
      extends Object

  Connection threshold definition.

  Defined by maximum connection attempts over a time period in seconds.

- - ### Field Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `(package private) static Threshold` | `ALLOW` A Threshold that is never breached
    `(package private) static Threshold` | `DENY` A Threshold that is always breached

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `Threshold(int connections, int seconds)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `(package private) int` | `getConnections()`
    `(package private) int` | `getSeconds()`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### 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()