|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.Thread
com.sun.grizzly.util.WorkerThread
com.sun.grizzly.util.WorkerThreadImpl
com.sun.grizzly.http.HttpWorkerThread
public class HttpWorkerThread
Specialized WorkerThread.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class java.lang.Thread |
|---|
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler |
| Field Summary |
|---|
| Fields inherited from class com.sun.grizzly.util.WorkerThreadImpl |
|---|
DEFAULT_BYTE_BUFFER_SIZE, DEFAULT_BYTEBUFFER_TYPE, threadAttachment |
| Fields inherited from class com.sun.grizzly.util.WorkerThread |
|---|
byteBuffer, inputBB, outputBB, sslEngine |
| Fields inherited from class java.lang.Thread |
|---|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
| Constructor Summary | |
|---|---|
HttpWorkerThread(java.util.concurrent.ExecutorService threadPool,
java.lang.String name)
Create a Thread that will synchronizes/block on ExecutorService instance. |
|
HttpWorkerThread(java.util.concurrent.ExecutorService threadPool,
java.lang.String name,
java.lang.Runnable runnable,
int initialByteBufferSize)
Create a Thread |
|
HttpWorkerThread(java.lang.ThreadGroup threadGroup,
java.lang.Runnable runnable)
Create a Thread that will synchronizes/block on ExecutorService instance. |
|
| Method Summary | |
|---|---|
ThreadAttachment |
getAttachment()
|
InputReader |
getInputStream()
|
ProcessorTask |
getProcessorTask()
|
StreamAlgorithm |
getStreamAlgorithm()
|
void |
reset()
|
void |
setInputStream(InputReader inputStream)
|
void |
setProcessorTask(ProcessorTask processorTask)
|
void |
setStreamAlgorithm(StreamAlgorithm streamAlgorithm)
|
| Methods inherited from class com.sun.grizzly.util.WorkerThreadImpl |
|---|
attach, createByteBuffer, detach, getByteBufferType, getContext, getInitialByteBufferSize, getPendingIOhandler, processTask, setByteBufferType, setContext, setInitialByteBufferSize, setPendingIOhandler, updateAttachment |
| Methods inherited from class com.sun.grizzly.util.WorkerThread |
|---|
getByteBuffer, getInputBB, getOutputBB, getSSLEngine, setByteBuffer, setInputBB, setOutputBB, setSSLEngine |
| 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, run, 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 |
| Constructor Detail |
|---|
public HttpWorkerThread(java.lang.ThreadGroup threadGroup,
java.lang.Runnable runnable)
ExecutorService instance.
threadGroup - ThreadGrouprunnable - Runnable
public HttpWorkerThread(java.util.concurrent.ExecutorService threadPool,
java.lang.String name)
ExecutorService instance.
threadPool - ExecutorServicename - String
public HttpWorkerThread(java.util.concurrent.ExecutorService threadPool,
java.lang.String name,
java.lang.Runnable runnable,
int initialByteBufferSize)
threadPool - ExecutorService instancename - thread namerunnable - task to executeinitialByteBufferSize - initial size of thread associated
ByteBuffer| Method Detail |
|---|
public StreamAlgorithm getStreamAlgorithm()
public void setStreamAlgorithm(StreamAlgorithm streamAlgorithm)
public InputReader getInputStream()
public void setInputStream(InputReader inputStream)
public ProcessorTask getProcessorTask()
public void setProcessorTask(ProcessorTask processorTask)
public ThreadAttachment getAttachment()
getAttachment in class WorkerThreadImplpublic void reset()
reset in class WorkerThreadImpl
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||