|
||||||||||
| 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
public abstract class WorkerThread
Simple interface to allow the addition of Thread attributes.
| 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 ByteBuffer |
inputBB
The encrypted ByteBuffer used for handshaking and reading request bytes. |
protected ByteBuffer |
outputBB
The encrypted ByteBuffer used for handshaking and writing response bytes. |
protected SSLEngine |
sslEngine
The SSLEngine used to manage the SSL over NIO request. |
| Fields inherited from class java.lang.Thread |
|---|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
| Constructor Summary | |
|---|---|
WorkerThread()
|
|
WorkerThread(Runnable target)
|
|
WorkerThread(Runnable target,
String name)
|
|
WorkerThread(String name)
|
|
WorkerThread(ThreadGroup group,
Runnable target)
|
|
WorkerThread(ThreadGroup group,
Runnable target,
String name)
|
|
WorkerThread(ThreadGroup group,
Runnable target,
String name,
long stackSize)
|
|
WorkerThread(ThreadGroup group,
String name)
|
|
| Method Summary | |
|---|---|
abstract void |
attach(ThreadAttachment threadAttachment)
Attach the ThreadAttachment to this instance. |
abstract ThreadAttachment |
detach()
Detach the current set of attributes (state) associated with this instance. |
abstract ThreadAttachment |
getAttachment()
Get the current set of attributes (state) associated with this instance. |
ByteBuffer |
getByteBuffer()
Return the ByteBuffer shared this thread |
ByteBuffer |
getInputBB()
Return the encrypted ByteBuffer used to handle request. |
ByteBuffer |
getOutputBB()
Return the encrypted ByteBuffer used to handle response. |
SSLEngine |
getSSLEngine()
Set the SSLEngine. |
void |
reset()
|
void |
setByteBuffer(ByteBuffer byteBuffer)
Set the ByteBuffer shared this thread |
void |
setInputBB(ByteBuffer inputBB)
Set the encrypted ByteBuffer used to handle request. |
void |
setOutputBB(ByteBuffer outputBB)
Set the encrypted ByteBuffer used to handle response. |
void |
setSSLEngine(SSLEngine sslEngine)
Get the SSLEngine. |
abstract ThreadAttachment |
updateAttachment(int mode)
Updates Thread associated attachment according to the passed mode. |
| 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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected ByteBuffer byteBuffer
ByteBuffer used when Task are executed.
protected ByteBuffer inputBB
protected ByteBuffer outputBB
protected SSLEngine sslEngine
SSLEngine used to manage the SSL over NIO request.
| Constructor Detail |
|---|
public WorkerThread()
public WorkerThread(String name)
public WorkerThread(Runnable target)
public WorkerThread(Runnable target,
String name)
public WorkerThread(ThreadGroup group,
String name)
public WorkerThread(ThreadGroup group,
Runnable target)
public WorkerThread(ThreadGroup group,
Runnable target,
String name)
public WorkerThread(ThreadGroup group,
Runnable target,
String name,
long stackSize)
| Method Detail |
|---|
public void setByteBuffer(ByteBuffer byteBuffer)
ByteBuffer shared this thread
public ByteBuffer getByteBuffer()
ByteBuffer shared this thread
public ByteBuffer getInputBB()
ByteBuffer used to handle request.
ByteBufferpublic void setInputBB(ByteBuffer inputBB)
ByteBuffer used to handle request.
inputBB - ByteBufferpublic ByteBuffer getOutputBB()
ByteBuffer used to handle response.
ByteBufferpublic void setOutputBB(ByteBuffer outputBB)
ByteBuffer used to handle response.
outputBB - ByteBufferpublic SSLEngine getSSLEngine()
SSLEngine.
public void setSSLEngine(SSLEngine sslEngine)
SSLEngine.
sslEngine{@link - SSLEngine}public abstract ThreadAttachment updateAttachment(int mode)
public abstract ThreadAttachment getAttachment()
public abstract ThreadAttachment detach()
public abstract void attach(ThreadAttachment threadAttachment)
ThreadAttachment - the attachment.public void reset()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||