new SystemTimeInterruptMonitor(terminateWithoutException)

Constructs one interruption monitor.

Parameter

Name Type Optional Description

terminateWithoutException

 

 

TerminateWithoutException

Methods

getTerminateWithoutException()

See TerminateWithoutException. This property is specified by user when constructing this monitor instance.

isInterruptionRequested()

This implementation just checks whether the time cost(from the time when starting this monitor to now) is greater than user specified limit.

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.

Parameter

Name Type Optional Description

msLimit

Number

 

time limit(ms) to require the interruption.