org.glassfish.grizzly.threadpool
Interface WorkerThread

All Superinterfaces:
AttributeStorage, java.lang.Runnable
All Known Implementing Classes:
DefaultWorkerThread

public interface WorkerThread
extends java.lang.Runnable, AttributeStorage

Interface, which Grizzly thread pool threads should implement.

Author:
Alexey Stashok

Field Summary
static long UNLIMITED_TRANSACTION_TIMEOUT
           
 
Method Summary
 void destroy()
           
 java.lang.String getName()
           
 java.lang.Thread getThread()
           
 long getTransactionTimeout(java.util.concurrent.TimeUnit timeunit)
           
 boolean isSelectorThread()
           
 void setSelectorThread(boolean isSelectorThread)
           
 void setTransactionTimeout(long timeout, java.util.concurrent.TimeUnit timeunit)
           
 void start()
           
 void stop()
           
 
Methods inherited from interface java.lang.Runnable
run
 
Methods inherited from interface org.glassfish.grizzly.attributes.AttributeStorage
getAttributes
 

Field Detail

UNLIMITED_TRANSACTION_TIMEOUT

static final long UNLIMITED_TRANSACTION_TIMEOUT
See Also:
Constant Field Values
Method Detail

start

void start()

stop

void stop()

destroy

void destroy()

getName

java.lang.String getName()

getThread

java.lang.Thread getThread()

getTransactionTimeout

long getTransactionTimeout(java.util.concurrent.TimeUnit timeunit)

setTransactionTimeout

void setTransactionTimeout(long timeout,
                           java.util.concurrent.TimeUnit timeunit)

isSelectorThread

boolean isSelectorThread()

setSelectorThread

void setSelectorThread(boolean isSelectorThread)


Copyright © 2011 Oracle Corpration. All Rights Reserved.