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 com.sun.grizzly.util.WorkerThreadImpl |
attach, createByteBuffer, detach, getByteBufferType, getContext, getInitialByteBufferSize, getPendingIOhandler, processTask, setByteBufferType, setContext, setInitialByteBufferSize, setPendingIOhandler, updateAttachment |
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 |
HttpWorkerThread
public HttpWorkerThread(ThreadGroup threadGroup,
Runnable runnable)
- Create a Thread that will synchronizes/block on
ExecutorService
instance.
- Parameters:
threadGroup
- ThreadGroup
runnable
- Runnable
HttpWorkerThread
public HttpWorkerThread(ExecutorService threadPool,
String name)
- Create a Thread that will synchronizes/block on
ExecutorService
instance.
- Parameters:
threadPool
- ExecutorService
name
- String
HttpWorkerThread
public HttpWorkerThread(ExecutorService threadPool,
String name,
Runnable runnable,
int initialByteBufferSize)
- Create a Thread
- Parameters:
threadPool
- ExecutorService
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()
- Description copied from class:
WorkerThread
- Get the current set of attributes (state) associated with this instance.
Unlike detach(), this method doesn't clear the WorkerThread attributes.
- Overrides:
getAttachment
in class WorkerThreadImpl
- Returns:
- the Thread associated ThreadAttachment
reset
public void reset()
- Overrides:
reset
in class WorkerThreadImpl
Copyright © 2012 Oracle Corporation. All Rights Reserved.