|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Objectcom.wowza.wms.vhost.ThreadPool
public class ThreadPool
ThreadPool: class for managing a pool of threads.
| Constructor Summary | |
|---|---|
ThreadPool(IVHost vhost,
String name)
Create a new thread pool attached to a vHost. |
|
| Method Summary | |
|---|---|
void |
execute(Runnable command)
Execute a runnable object. |
int |
getActiveCount()
Get number of active threads. |
java.util.concurrent.Executor |
getExecutor()
Get the underlying Executor pool. |
int |
getQueueSize()
Get the number of command objects in the LinkedBlockingQueue. |
void |
init(int corePoolSize)
Initialize threadPool. |
void |
terminate()
Terminate all threads and cleanup threadPool. |
| Methods inherited from class Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ThreadPool(IVHost vhost,
String name)
vhost - vHost| Method Detail |
|---|
public void execute(Runnable command)
command - public int getActiveCount()
public java.util.concurrent.Executor getExecutor()
public int getQueueSize()
public void init(int corePoolSize)
corePoolSize - core pool sizepublic void terminate()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||