|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Thread
com.sun.jini.thread.InterruptedStatusThread
Common Thread subclass to handle potential loss of interrupted status.
Field Summary |
Fields inherited from class java.lang.Thread |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
Constructor Summary | |
InterruptedStatusThread()
Constructs a new InterruptedStatusThread object. |
|
InterruptedStatusThread(Runnable target)
Constructs a new InterruptedStatusThread object. |
|
InterruptedStatusThread(Runnable target,
String name)
Constructs a new InterruptedStatusThread object. |
|
InterruptedStatusThread(String name)
Constructs a new InterruptedStatusThread object. |
|
InterruptedStatusThread(ThreadGroup group,
Runnable target)
Constructs a new InterruptedStatusThread object. |
|
InterruptedStatusThread(ThreadGroup group,
Runnable target,
String name)
Constructs a new InterruptedStatusThread object. |
|
InterruptedStatusThread(ThreadGroup group,
Runnable target,
String name,
long stackSize)
Constructs a new InterruptedStatusThread object. |
|
InterruptedStatusThread(ThreadGroup group,
String name)
Constructs a new InterruptedStatusThread object. |
Method Summary | |
boolean |
hasBeenInterrupted()
Method used to determine if interrupt has been called
on this thread. |
void |
interrupt()
|
Methods inherited from class java.lang.Thread |
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, run, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, stop, suspend, toString, yield |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public InterruptedStatusThread()
InterruptedStatusThread
object.
public InterruptedStatusThread(Runnable target)
InterruptedStatusThread
object.
target
- the object whose run
method is calledpublic 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)
InterruptedStatusThread
object.
group
- the thread grouptarget
- the object whose run
method is calledpublic InterruptedStatusThread(ThreadGroup group, Runnable target, String name)
InterruptedStatusThread
object.
group
- the thread grouptarget
- the object whose run
method is calledname
- 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 ignoredpublic InterruptedStatusThread(ThreadGroup group, String name)
InterruptedStatusThread
object.
group
- the thread groupname
- the name of the new threadMethod Detail |
public void interrupt()
public boolean hasBeenInterrupted()
interrupt
has been called
on this thread.
interrupt
has been called on
this thread, false otherwise.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |