|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.lang.ThreadGroup | +--zyh.util.ThreadPool
ThreadPool implements a thread pool.
Constructor Summary | |
ThreadPool()
|
|
ThreadPool(int initialPoolSize,
int maximumPoolSize)
|
Method Summary | |
void |
close()
|
protected java.lang.Runnable |
getWaitingRunnableObject()
|
boolean |
isAllIdle()
|
boolean |
isClosed()
|
void |
run(java.lang.Runnable runnableObject)
|
Methods inherited from class java.lang.ThreadGroup |
activeCount,
activeGroupCount,
allowThreadSuspension,
checkAccess,
destroy,
enumerate,
enumerate,
enumerate,
enumerate,
getMaxPriority,
getName,
getParent,
interrupt,
isDaemon,
isDestroyed,
list,
parentOf,
resume,
setDaemon,
setMaxPriority,
stop,
suspend,
toString,
uncaughtException |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Constructor Detail |
public ThreadPool(int initialPoolSize, int maximumPoolSize)
public ThreadPool()
Method Detail |
public void close()
public boolean isClosed()
public boolean isAllIdle()
protected java.lang.Runnable getWaitingRunnableObject()
public void run(java.lang.Runnable runnableObject)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |