|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--org.hprog.code.InterpreterLimiter
Automatically interrupts an InteractiveInterpreter after a given time-out
| Field Summary | |
static long |
LIMIT
Default time limit, in milliseconds |
| Constructor Summary | |
InterpreterLimiter(InteractiveInterpreter i)
Interrupts an interpreter after LIMIT milliseconds |
|
InterpreterLimiter(InteractiveInterpreter i,
long limit)
Interrupts an interpreter after a specified time-out |
|
| Method Summary | |
void |
cancel()
Cancel this limiter, so that the target interpreter won't be interrupted after all |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final long LIMIT
| Constructor Detail |
public InterpreterLimiter(InteractiveInterpreter i,
long limit)
i - interpreter to interruptlimit - number of milliseconds to wait before interruptingpublic InterpreterLimiter(InteractiveInterpreter i)
| Method Detail |
public void cancel()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||