util
Class ResultThread
java.lang.Object
java.lang.Thread
util.ResultThread
- All Implemented Interfaces:
- Runnable
public class ResultThread
- extends Thread
A result thread is a thread that can store any single object during its
lifetime in the storeResult(java.lang.Object) method. After It has finished, the
result can be retrieved with getResult().
| Methods inherited from class java.lang.Thread |
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, yield |
result
private Object result
ResultThread
public ResultThread()
ResultThread
public ResultThread(Runnable target)
ResultThread
public ResultThread(Runnable target,
String name)
ResultThread
public ResultThread(String name)
storeResult
public void storeResult(Object r)
getResult
public Object getResult()