at.gv.egiz.pdfas.impl.input.correction
Class ExternalCorrector.TimeoutThread
java.lang.Object
java.lang.Thread
at.gv.egiz.pdfas.impl.input.correction.ExternalCorrector.TimeoutThread
- All Implemented Interfaces:
- Runnable
- Enclosing class:
- ExternalCorrector
- protected static class ExternalCorrector.TimeoutThread
- extends Thread
|
Method Summary |
boolean |
isTimedOut()
Tells, if the process ran into the timeout. |
void |
run()
|
| Methods inherited from class java.lang.Thread |
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, stop, suspend, toString, yield |
proc
protected Process proc
timeout
protected long timeout
ranIntoTimeout
protected boolean ranIntoTimeout
threads
protected Thread[] threads
errReader
protected BufferedReader errReader
ExternalCorrector.TimeoutThread
public ExternalCorrector.TimeoutThread(Process proc,
long timeout,
Thread[] threadsToInterrupt)
run
public void run()
isTimedOut
public boolean isTimedOut()
- Tells, if the process ran into the timeout.
- Returns:
- Returns true if the timeout was reached. Returns false if the
timeout was not reached.
Copyright © 2006-2010. All Rights Reserved.