| Constructor and Description |
|---|
NoTimeout() |
| Modifier and Type | Method and Description |
|---|---|
void |
init()
Initialises the timeout object.
|
boolean |
isReached()
Determines whether the timeout is reached.
|
void |
registerCallback(Runnable callback)
Registers
callback to be run once the timeout is reached. |
void |
reportOneStepProgress()
Reports one step of progress to the policy.
|
void |
unregisterCallback(Runnable callback)
Removes
callback from the set of callbacks to be run once the timeout is
reached. |
public boolean isReached()
Timeouttrue, it will return true on all further ivocations.public void reportOneStepProgress()
TimeoutreportOneStepProgress in interface Timeoutpublic void init()
Timeoutpublic void registerCallback(Runnable callback)
Timeoutcallback to be run once the timeout is reached.registerCallback in interface Timeoutcallback - A Runnable object.public void unregisterCallback(Runnable callback)
Timeoutcallback from the set of callbacks to be run once the timeout is
reached.unregisterCallback in interface Timeoutcallback - A Runnable object.