class Threshold extends Object
Defined by maximum connection attempts over a time period in seconds.
| 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 and Description |
|---|
Threshold(int connections,
int seconds) |
| Modifier and Type | Method and Description |
|---|---|
(package private) int |
getConnections() |
(package private) int |
getSeconds() |