com.sun.grizzly.http
Class HttpWorkerThread

java.lang.Object
  extended by java.lang.Thread
      extended by com.sun.grizzly.util.WorkerThread
          extended by com.sun.grizzly.util.WorkerThreadImpl
              extended by com.sun.grizzly.http.HttpWorkerThread
All Implemented Interfaces:
Runnable

public class HttpWorkerThread
extends WorkerThreadImpl

Specialized WorkerThread.

Author:
Jeanfrancois Arcand

Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
Thread.State, Thread.UncaughtExceptionHandler
 
Field Summary
 
Fields inherited from class com.sun.grizzly.util.WorkerThreadImpl
execute, pipeline, target, threadGroup
 
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(Pipeline<Callable> pipeline, String name)
          Create a Thread that will synchronizes/block on Pipeline instance.
HttpWorkerThread(ThreadGroup threadGroup, Runnable runnable)
          Create a Thread that will synchronizes/block on Pipeline instance.
 
Method Summary
 ByteBufferInputStream getInputStream()
           
 ProcessorTask getProcessorTask()
           
 StreamAlgorithm getStreamAlgorithm()
           
 void setInputStream(ByteBufferInputStream inputStream)
           
 void setProcessorTask(ProcessorTask processorTask)
           
 void setStreamAlgorithm(StreamAlgorithm streamAlgorithm)
           
 
Methods inherited from class com.sun.grizzly.util.WorkerThreadImpl
attach, detach, getAttachment, getByteBufferType, reset, run, setByteBufferType, terminate, 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, 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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

HttpWorkerThread

public HttpWorkerThread(ThreadGroup threadGroup,
                        Runnable runnable)
Create a Thread that will synchronizes/block on Pipeline instance.

Parameters:
threadGroup - ThreadGroup
runnable - Runnable

HttpWorkerThread

public HttpWorkerThread(Pipeline<Callable> pipeline,
                        String name)
Create a Thread that will synchronizes/block on Pipeline instance.

Parameters:
pipeline - Pipeline
name - String
Method Detail

getStreamAlgorithm

public StreamAlgorithm getStreamAlgorithm()

setStreamAlgorithm

public void setStreamAlgorithm(StreamAlgorithm streamAlgorithm)

getInputStream

public ByteBufferInputStream getInputStream()

setInputStream

public void setInputStream(ByteBufferInputStream inputStream)

getProcessorTask

public ProcessorTask getProcessorTask()

setProcessorTask

public void setProcessorTask(ProcessorTask processorTask)


Copyright © 2010 SUN Microsystems. All Rights Reserved.