org.glassfish.grizzly.threadpool
Interface WorkerThread

All Superinterfaces:
AttributeStorage, Runnable
All Known Implementing Classes:
DefaultWorkerThread

public interface WorkerThread
extends Runnable, AttributeStorage

Interface, which Grizzly thread pool threads should implement.

Author:
Alexey Stashok

Field Summary
static long UNLIMITED_TRANSACTION_TIMEOUT
           
 
Method Summary
 void destroy()
           
 String getName()
           
 Thread getThread()
           
 long getTransactionTimeout(TimeUnit timeunit)
           
 boolean isSelectorThread()
           
 void setSelectorThread(boolean isSelectorThread)
           
 void setTransactionTimeout(long timeout, 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

String getName()

getThread

Thread getThread()

getTransactionTimeout

long getTransactionTimeout(TimeUnit timeunit)

setTransactionTimeout

void setTransactionTimeout(long timeout,
                           TimeUnit timeunit)

isSelectorThread

boolean isSelectorThread()

setSelectorThread

void setSelectorThread(boolean isSelectorThread)


Copyright © 2012 Oracle Corporation. All Rights Reserved.