Thread.State, Thread.UncaughtExceptionHandler
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
Constructor and Description |
---|
ProcessTimeoutDestroyer(ExternalModule module) |
Modifier and Type | Method and Description |
---|---|
boolean |
didDestroy() |
void |
doWait(long time) |
Process |
getProcess() |
long |
getTimeLimit() |
void |
makeSureWereReady() |
void |
pleaseExit() |
void |
resetTimeLimit()
Reset the time limit to 0.
|
void |
run() |
void |
setTimeLimit(long timeLimit)
A timelimit > 0 will cause the timeout-destroy procedure to be started.
|
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
public ProcessTimeoutDestroyer(ExternalModule module)
public Process getProcess()
public long getTimeLimit()
public void setTimeLimit(long timeLimit)
resetTimeLimit()
is taken into account. If a new thread sets a new time limit while the
old one is still running, the old one is silently stopped, and the new one is started as if the old one was not there.timeLimit
- timeLimitresetTimeLimit()
public void resetTimeLimit()
public void pleaseExit()
public boolean didDestroy()
public void makeSureWereReady()
public void doWait(long time)
Copyright © 2000–2016 DFKI GmbH. All rights reserved.