class ConnThrottler extends Object
Constructor and Description |
---|
ConnThrottler(int max,
int totalMax,
long period,
SimpleTimer2 timer) |
Modifier and Type | Method and Description |
---|---|
(package private) boolean |
isThrottled(Hash h)
Checks individual count only.
|
(package private) boolean |
shouldThrottle(Hash h)
Checks both individual and total.
|
void |
updateLimits(int max,
int totalMax) |
ConnThrottler(int max, int totalMax, long period, SimpleTimer2 timer)