com.sun.grizzly.http
Class HttpWorkerThread
java.lang.Object
java.lang.Thread
com.sun.grizzly.util.WorkerThread
com.sun.grizzly.util.WorkerThreadImpl
com.sun.grizzly.http.HttpWorkerThread
- All Implemented Interfaces:
- Runnable
public class HttpWorkerThread
- extends WorkerThreadImpl
Specialized WorkerThread.
- Author:
- Jeanfrancois Arcand
Methods inherited from class java.lang.Thread |
activeCount, checkAccess, 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 |
HttpWorkerThread
public HttpWorkerThread(ThreadGroup threadGroup,
Runnable runnable)
- Create a Thread that will synchronizes/block on
StatsThreadPool
instance.
- Parameters:
threadGroup
- ThreadGroup
runnable
- Runnable
HttpWorkerThread
public HttpWorkerThread(StatsThreadPool threadPool,
String name)
- Create a Thread that will synchronizes/block on
StatsThreadPool
instance.
- Parameters:
threadPool
- StatsThreadPool
name
- String
HttpWorkerThread
public HttpWorkerThread(StatsThreadPool threadPool,
String name,
Runnable runnable,
int initialByteBufferSize)
- Create a Thread
- Parameters:
threadPool
- StatsThreadPool
instancename
- thread namerunnable
- task to executeinitialByteBufferSize
- initial size of thread associated
ByteBuffer
getStreamAlgorithm
public StreamAlgorithm getStreamAlgorithm()
setStreamAlgorithm
public void setStreamAlgorithm(StreamAlgorithm streamAlgorithm)
getInputStream
public InputReader getInputStream()
setInputStream
public void setInputStream(InputReader inputStream)
getProcessorTask
public ProcessorTask getProcessorTask()
setProcessorTask
public void setProcessorTask(ProcessorTask processorTask)
getAttachment
public ThreadAttachment getAttachment()
- Overrides:
getAttachment
in class WorkerThreadImpl
Copyright © 2009 SUN Microsystems. All Rights Reserved.