|
JXTA | ||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.lang.Thread | +--net.jxta.instantp2p.util.WorkerThread
Fields inherited from class java.lang.Thread |
MAX_PRIORITY,
MIN_PRIORITY,
NORM_PRIORITY |
Constructor Summary | |
WorkerThread()
Creates a new WorkerThread instance. |
Method Summary | |
void |
addData(java.lang.Runnable object)
Adds data to the scheduler. |
boolean |
removeData(java.lang.Runnable object)
Removes a Runnable object from the stack. |
void |
run()
This method checks whether runObjects has any objects to process. |
void |
stopThread()
Stops this thread. |
Methods inherited from class java.lang.Thread |
activeCount,
checkAccess,
countStackFrames,
currentThread,
destroy,
dumpStack,
enumerate,
getContextClassLoader,
getName,
getPriority,
getThreadGroup,
interrupt,
interrupted,
isAlive,
isDaemon,
isInterrupted,
join,
join,
join,
resume,
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 WorkerThread()
Method Detail |
public void run()
public void addData(java.lang.Runnable object)
object
- Runnable instance that needs to be executedpublic boolean removeData(java.lang.Runnable object)
object
- Runnable instance to delete from the stackpublic void stopThread()
|
JXTA | ||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |