public class ReRunThrottler extends Object
checkInterval
Example usage:
private final ReRunThrottler throttler = new ReRunThrottler(ConfigurationFactory.getInstance().getCheckInterval());
...
public void someMethod() {
if (throttler.shouldThrottle()) return;
// do stuff
}
| Modifier and Type | Field and Description |
|---|---|
int |
checkInterval |
| Constructor and Description |
|---|
ReRunThrottler() |
ReRunThrottler(int checkInterval) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
shouldThrottle() |
Copyright © 2015. All rights reserved.