Class RxTaskPool
java.lang.Object
org.apache.catalina.tribes.transport.RxTaskPool
A very simple thread pool class.  The pool size is set at
 construction time and remains fixed.  Threads are cycled
 through a FIFO idle queue.
- 
Nested Class SummaryNested Classes
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionintprotected voidconfigureTask(AbstractRxTask task) intintFind an idle worker thread, if any.voidreturnWorker(AbstractRxTask worker) Called by the worker thread to return itself to the idle pool.voidsetMaxTasks(int maxThreads) voidsetMinTasks(int minThreads) voidstop()
- 
Constructor Details- 
RxTaskPool- Throws:
- Exception
 
 
- 
- 
Method Details- 
configureTask
- 
getRxTaskFind an idle worker thread, if any. Could return null.- Returns:
- a worker
 
- 
availablepublic int available()
- 
returnWorkerCalled by the worker thread to return itself to the idle pool.- Parameters:
- worker- The worker
 
- 
getMaxThreadspublic int getMaxThreads()
- 
getMinThreadspublic int getMinThreads()
- 
stoppublic void stop()
- 
setMaxTaskspublic void setMaxTasks(int maxThreads) 
- 
setMinTaskspublic void setMinTasks(int minThreads) 
- 
getTaskCreator
 
-