class ConnThrottler extends Object
| Constructor | Description |
|---|---|
ConnThrottler(int max,
int totalMax,
long period,
long throttlePeriod,
long totalThrottlePeriod,
String action,
Log log) |
| Modifier and Type | Method | Description |
|---|---|---|
void |
clear() |
start over
|
boolean |
shouldThrottle(Hash h) |
Checks both individual and total.
|
void |
updateLimits(int max,
int totalMax,
long checkPeriod,
long throttlePeriod,
long totalThrottlePeriod) |
public void updateLimits(int max,
int totalMax,
long checkPeriod,
long throttlePeriod,
long totalThrottlePeriod)
public boolean shouldThrottle(Hash h)
public void clear()