Thread.State, Thread.UncaughtExceptionHandler
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
Modifier | Constructor and Description |
---|---|
protected |
Task(String name)
Create a new task with the specified name.
|
Modifier and Type | Method and Description |
---|---|
void |
cease()
Request peaceful shutdown of the task.
|
static void |
delay(int ms)
Utility method to pause the current thread.
|
boolean |
isIdle()
Provides an indication whether the task is currently busy or not.
|
protected boolean |
stopped()
Indicates whether the task has been stopped.
|
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
protected Task(String name)
name
- name of the taskpublic void cease()
protected boolean stopped()
public boolean isIdle()
public static void delay(int ms)
ms
- number of milliseconds to pauseCopyright © 2015. All Rights Reserved.