Package 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
Fields Modifier and Type Field Description static longUNLIMITED_TRANSACTION_TIMEOUT
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.StringgetName()java.lang.ThreadgetThread()longgetTransactionTimeout(java.util.concurrent.TimeUnit timeunit)voidsetTransactionTimeout(long timeout, java.util.concurrent.TimeUnit timeunit)voidstart()voidstop()-
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()
-
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)
-
-