Thread.State, Thread.UncaughtExceptionHandler
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
Constructor and Description |
---|
InterruptedStatusThread(Runnable target,
String name)
Constructs a new
InterruptedStatusThread object. |
InterruptedStatusThread(String name)
Constructs a new
InterruptedStatusThread object. |
InterruptedStatusThread(ThreadGroup group,
Runnable target,
String name,
long stackSize)
Constructs a new
InterruptedStatusThread object. |
Modifier and Type | Method and Description |
---|---|
boolean |
hasBeenInterrupted()
Method used to determine if
interrupt has been called on this thread. |
void |
interrupt() |
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, run, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
public InterruptedStatusThread(Runnable target, String name)
InterruptedStatusThread
object.target
- the object whose run
method is calledname
- the name of the new threadpublic InterruptedStatusThread(String name)
InterruptedStatusThread
object.name
- the name of the new threadpublic InterruptedStatusThread(ThreadGroup group, Runnable target, String name, long stackSize)
InterruptedStatusThread
object.group
- the thread grouptarget
- the object whose run
method is calledname
- the name of the new threadstackSize
- the desired stack size for the new thread, or zero to indicate that this
parameter is to be ignoredCopyright © GigaSpaces.