public class AbstractMonitorableTask extends AbstractCancellableTask implements MonitorableTask
Thread.State, Thread.UncaughtExceptionHandler
Modifier and Type | Field and Description |
---|---|
protected SimpleTaskStatus |
taskStatus |
cancellationRequested
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
Modifier | Constructor and Description |
---|---|
protected |
AbstractMonitorableTask() |
protected |
AbstractMonitorableTask(boolean autoAddTaskStatus) |
protected |
AbstractMonitorableTask(String taskName) |
protected |
AbstractMonitorableTask(String taskName,
boolean autoAddTaskStatus) |
Modifier and Type | Method and Description |
---|---|
void |
cancelRequest()
Request to the task that cancel.
|
protected SimpleTaskStatus |
getSimpleTaskStatus() |
TaskStatus |
getTaskStatus() |
void |
setTaskName(String name) |
isCancellationRequested
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
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
isCancellationRequested
protected SimpleTaskStatus taskStatus
protected AbstractMonitorableTask(String taskName, boolean autoAddTaskStatus)
protected AbstractMonitorableTask(String taskName)
protected AbstractMonitorableTask(boolean autoAddTaskStatus)
protected AbstractMonitorableTask()
public void setTaskName(String name)
public TaskStatus getTaskStatus()
getTaskStatus
in interface MonitorableTask
protected SimpleTaskStatus getSimpleTaskStatus()
public void cancelRequest()
CancellableTask
cancelRequest
in interface CancellableTask
cancelRequest
in class AbstractCancellableTask