public class ErrorCounter
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
locked |
protected long |
lockTimeout |
protected long |
max |
protected long |
min |
protected int |
pointer |
protected long |
tested |
protected long[] |
timestamps |
protected long |
windowLength |
| Modifier | Constructor and Description |
|---|---|
protected |
ErrorCounter(long windowLength,
long lockTimeout,
int maxErrors) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
increment(long now) |
protected boolean |
isAvailable(long now) |
protected boolean |
isEmpty() |
protected void |
reset() |
protected final long windowLength
protected final long lockTimeout
protected final long[] timestamps
protected volatile int pointer
protected volatile long max
protected volatile long min
protected volatile long tested
protected volatile boolean locked