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, unregisterCallback
public boolean isReached()
Timeout
true
, it will return true
on all further ivocations.true
if the timeout is reached; false
otherwise.public void reportOneStepProgress()
Timeout
protected void implementationInit()
ExecutionTimeBasedTimeout
ExecutionTimeBasedTimeout.init()
.implementationInit
in class ExecutionTimeBasedTimeout