public class TTSTimeout extends Thread
Modifier and Type | Class and Description |
---|---|
static interface |
TTSTimeout.ThreadFreeInterrupter |
Thread.State, Thread.UncaughtExceptionHandler
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
Constructor and Description |
---|
TTSTimeout() |
Modifier and Type | Method and Description |
---|---|
void |
close()
Must always be called even if enable() is never called, otherwise the
underlying thread will run forever.
|
void |
disable()
Must always be called after enable().
|
void |
enable(Thread job,
int seconds) |
void |
enable(Thread job,
TTSTimeout.ThreadFreeInterrupter interruptable,
int seconds) |
void |
enableForCurrentThread(int seconds) |
void |
enableForCurrentThread(TTSTimeout.ThreadFreeInterrupter interruptable,
int seconds) |
void |
run() |
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 void close()
public void enable(Thread job, TTSTimeout.ThreadFreeInterrupter interruptable, int seconds)
public void enable(Thread job, int seconds)
public void enableForCurrentThread(TTSTimeout.ThreadFreeInterrupter interruptable, int seconds)
public void enableForCurrentThread(int seconds)
public void disable()
Copyright © 2010–2024 The DAISY Consortium. All rights reserved.