Constructor Summary |
---|
ThreadInterruptMonitor(terminateWithoutException)
Constructs one interruption monitor. |
Property Getters/Setters Summary | ||
---|---|---|
function | isInterruptionRequested() | |
This implementation just checks whether the time cost(from the time when starting this monitor to now) is greater than user specified limit.
|
||
function | getTerminateWithoutException() | |
See |
Method Summary | ||
---|---|---|
function | finishMonitor() | |
Finishes the monitor for one procedure.
|
||
function | startMonitor(msLimit) | |
Starts the monitor with the specified time limit. The start time to calculate time cost is just when this method is called,
so the procedure which needs to be monitored should be started just after this call.
|
function ThreadInterruptMonitor(terminateWithoutException)
terminateWithoutException: boolean
- function isInterruptionRequested()
function getTerminateWithoutException()
function startMonitor(msLimit)
msLimit: Number
- time limit(ms) to require the interruption.function finishMonitor()