Modifier and Type | Field and Description |
---|---|
int |
LIMIT_CALLS
Number of calls before the method
isCounterValid() returns
a false . |
long |
LIMIT_TIME_STAMP
Limit of time stamp calls in millisecond.
|
Modifier and Type | Method and Description |
---|---|
boolean |
isCounterValid()
Request if the counter hasn't reached the limit.
|
boolean |
isElapsed()
Request if the current system time stamp has reached its upper limit,
where the time stamp is taken on runtime via
System.currentTimeMillis() . |
boolean |
isElapsed(long currentTime)
Deprecated.
|
void |
reset()
Resets all internal values to their origin state, i.e.
|
public final int LIMIT_CALLS
public final long LIMIT_TIME_STAMP
public void reset()
public boolean isCounterValid()
LIMIT_CALLS
.public boolean isElapsed()
System.currentTimeMillis()
.
The upper limit shouldn't defect a time differences which is set in
the constructor.@Deprecated public boolean isElapsed(long currentTime)
currentTime
- current time in milliseconds.14-September-2016 18:23 Deutsches Elektronen-Synchrotron DESY in der Helmholtz-Gemeinschaft