|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.Thread
com.sun.enterprise.web.connector.grizzly.WorkerThreadImpl
public class WorkerThreadImpl
Simple worker thread used for processing HTTP requests. All threads are
synchronized using a Pipeline object
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class java.lang.Thread |
|---|
Thread.State, Thread.UncaughtExceptionHandler |
| Field Summary | |
|---|---|
protected ByteBuffer |
byteBuffer
The ByteBuffer used when Task are executed. |
protected boolean |
doTask
Looing variable. |
protected Pipeline |
pipeline
The Pipeline on which this thread synchronize. |
protected Runnable |
target
What will be run. |
protected static ThreadGroup |
threadGroup
The ThreadGroup used. |
| Fields inherited from class java.lang.Thread |
|---|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
| Constructor Summary | |
|---|---|
WorkerThreadImpl(Pipeline pipeline,
String name)
Create a Thread that will synchronizes/block on Pipeline instance. |
|
WorkerThreadImpl(ThreadGroup threadGroup,
Runnable runnable)
Create a Thread that will synchronizes/block on Pipeline instance. |
|
| Method Summary | |
|---|---|
ByteBuffer |
getByteBuffer()
Return the ByteBuffer shared this thread |
void |
run()
Execute a Task. |
void |
setByteBuffer(ByteBuffer byteBuffer)
Set the ByteBuffer shared this thread |
void |
terminate()
Stop this thread. |
| Methods inherited from class java.lang.Thread |
|---|
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, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected Runnable target
protected ByteBuffer byteBuffer
ByteBuffer used when Task are executed.
protected Pipeline pipeline
Pipeline on which this thread synchronize.
protected volatile boolean doTask
protected static final ThreadGroup threadGroup
ThreadGroup used.
| Constructor Detail |
|---|
public WorkerThreadImpl(ThreadGroup threadGroup,
Runnable runnable)
Pipeline instance.
public WorkerThreadImpl(Pipeline pipeline,
String name)
Pipeline instance.
| Method Detail |
|---|
public void run()
Task.
run in interface Runnablerun in class Threadpublic void terminate()
public void setByteBuffer(ByteBuffer byteBuffer)
ByteBuffer shared this thread
setByteBuffer in interface WorkerThreadpublic ByteBuffer getByteBuffer()
ByteBuffer shared this thread
getByteBuffer in interface WorkerThread
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||