public class AdaptiveTimeout extends ExecutionTimeBasedTimeout
isReached() will return false if the previous calls took a
long time, too.callbacks, initialised, startingTime| Constructor and Description |
|---|
AdaptiveTimeout() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
implementationInit()
For init methods of implementing classes.
|
boolean |
isReached()
Determines whether the timeout is reached.
|
void |
reportOneStepProgress()
Reports one step of progress to the policy.
|
init, registerCallback, unregisterCallbackpublic boolean isReached()
Timeouttrue, it will return true on all further ivocations.true if the timeout is reached; false otherwise.public void reportOneStepProgress()
Timeoutprotected void implementationInit()
ExecutionTimeBasedTimeoutExecutionTimeBasedTimeout.init().implementationInit in class ExecutionTimeBasedTimeout