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()
Timeout
true
, it will return true
on all further ivocations.public void reportOneStepProgress()
Timeout
reportOneStepProgress
in interface Timeout
public void init()
Timeout
public void registerCallback(Runnable callback)
Timeout
callback
to be run once the timeout is reached.registerCallback
in interface Timeout
callback
- A Runnable
object.public void unregisterCallback(Runnable callback)
Timeout
callback
from the set of callbacks to be run once the timeout is
reached.unregisterCallback
in interface Timeout
callback
- A Runnable
object.