Package org.flasby.util
Class TimeoutReporter
java.lang.Object
org.flasby.util.TimeoutReporter
used to drive reports of timeouts.
Calling
tick()
returns if you should log a message.
The logging backs off so that reports don't spam the logs.- Author:
- steve
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlong
getDelta()
long
void
reset()
void
setResetTime
(long time) boolean
tick()
-
Constructor Details
-
TimeoutReporter
public TimeoutReporter()
-
-
Method Details
-
tick
public boolean tick() -
reset
public void reset() -
setResetTime
public void setResetTime(long time) -
getDelta
public long getDelta() -
getLastResetTime
public long getLastResetTime()
-