|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjava.lang.Thread
org.apache.jetspeed.services.threadpool.RunnableThread
A thread that is used to process Runnables. This thread will wait until it is notified by another thread that it needs processing. However it will only process if getRunnable != null.
| Field Summary |
| Fields inherited from class java.lang.Thread |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
| Constructor Summary | |
RunnableThread()
|
|
RunnableThread(java.lang.ThreadGroup tg)
Creates a new Thread in the specified threadgroup |
|
RunnableThread(java.lang.ThreadGroup tg,
int id)
Creates a new Thread in the specified threadgroup and assigns it an id. |
|
| Method Summary | |
java.lang.Runnable |
getRunnable()
Get the Runnable process executing |
int |
getThreadId()
Get the numeric identifier of this thread |
void |
run()
Processes the Runnable object assigned to it, whenever one is available |
void |
setRunnable(java.lang.Runnable runnable)
Set the Runnable process to execute |
| Methods inherited from class java.lang.Thread |
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, 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 RunnableThread()
public RunnableThread(java.lang.ThreadGroup tg)
tg - the Threadgroup which will contain the new Thread
public RunnableThread(java.lang.ThreadGroup tg,
int id)
tg - the Threadgroup which will contain the new Threadid - an identifier for the new Thread| Method Detail |
public void run()
public void setRunnable(java.lang.Runnable runnable)
runnable - the Object to executepublic java.lang.Runnable getRunnable()
public int getThreadId()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||