Thread.State, Thread.UncaughtExceptionHandler
Modifier and Type | Field and Description |
---|---|
protected TaskResult |
result |
protected Thread |
runner |
protected SessionState |
ss |
protected Task<? extends Serializable> |
tsk |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
Constructor and Description |
---|
TaskRunner(Task<? extends Serializable> tsk,
TaskResult result) |
Modifier and Type | Method and Description |
---|---|
Thread |
getRunner() |
Task<? extends Serializable> |
getTask() |
TaskResult |
getTaskResult() |
static long |
getTaskRunnerID() |
boolean |
isRunning() |
void |
run() |
void |
runSequential()
Launches a task, and sets its exit value in the result variable.
|
void |
setOperationLog(OperationLog operationLog) |
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
protected Task<? extends Serializable> tsk
protected TaskResult result
protected SessionState ss
protected Thread runner
public TaskRunner(Task<? extends Serializable> tsk, TaskResult result)
public Task<? extends Serializable> getTask()
public TaskResult getTaskResult()
public Thread getRunner()
public boolean isRunning()
public void runSequential()
public static long getTaskRunnerID()
public void setOperationLog(OperationLog operationLog)
Copyright © 2017 The Apache Software Foundation. All rights reserved.