|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.jas.kern.TimeStatus
public class TimeStatus
Run-time status, defines global status and handling for run time limits.
Constructor Summary | |
---|---|
protected |
TimeStatus()
No public constructor. |
Method Summary | |
---|---|
static void |
checkTime(java.lang.String msg)
Check for exceeded time, test if time has exceeded and throw an exception if so. |
static boolean |
isActive()
isActive. |
static void |
restart()
Restart timer, set run-time to current time. |
static void |
setActive()
setAllow, set run-time interruption to allowed status. |
static void |
setCallBack(java.util.concurrent.Callable<java.lang.Boolean> cb)
set call back, set the Callabe object. |
static void |
setLimit(long t)
setLimit, set run-time limit in milliseconds. |
static void |
setNotActive()
setNotActive, set run-time interruption to not active status. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected TimeStatus()
Method Detail |
---|
public static boolean isActive()
public static void setActive()
public static void setNotActive()
public static void setLimit(long t)
public static void restart()
public static void setCallBack(java.util.concurrent.Callable<java.lang.Boolean> cb)
public static void checkTime(java.lang.String msg)
msg
- the message to be send with the exception.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |