protected static class Daemon.DaemonThread extends Thread
Daemon.startModule(Module) and
Daemon.executeScheduledTask(Task) methods so that the returned object and the
exception thrown can be returned to calling classThread.State, Thread.UncaughtExceptionHandler| Modifier and Type | Field and Description |
|---|---|
protected Exception |
exceptionThrown
The exception thrown (if any) by the method called in
Thread.run() |
protected Object |
returnedObject
The object returned from the method called in
Thread.run() |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY| Modifier | Constructor and Description |
|---|---|
protected |
DaemonThread() |
| Modifier and Type | Method and Description |
|---|---|
Exception |
getExceptionThrown()
Gets the exception thrown (if any) by the method called in
Thread.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, run, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yieldprotected Object returnedObject
Thread.run()protected Exception exceptionThrown
Thread.run()public Exception getExceptionThrown()
Thread.run()Copyright © 2024 OpenMRS Inc.. All rights reserved.