|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcgl.narada.transport.threadpool.ThreadPoolManager
public class ThreadPoolManager
| Constructor Summary | |
|---|---|
ThreadPoolManager(int poolSize)
|
|
| Method Summary | |
|---|---|
int |
getActiveThreads()
This method retuns the current number of active threads within the system |
int |
getThreadPoolSize()
This method returns the current size of the thread pool |
ThreadPoolWorkerThread |
getThreadPoolWorkerThread(PoolTCPLink poolTCPLink)
|
void |
returnToThreadPool(ThreadPoolWorkerThread worker)
This method returns an active thread into the list of worker threads that are available for processing. |
void |
setThreadPoolSize(int newSize)
This method allows the increase or pruning of the threadpool |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ThreadPoolManager(int poolSize)
| Method Detail |
|---|
public void setThreadPoolSize(int newSize)
public int getThreadPoolSize()
public int getActiveThreads()
public ThreadPoolWorkerThread getThreadPoolWorkerThread(PoolTCPLink poolTCPLink)
public void returnToThreadPool(ThreadPoolWorkerThread worker)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||