public class CountableThreadPool extends Object
ExecutorService
as inner implement. Constructor and Description |
---|
CountableThreadPool(int threadNum) |
CountableThreadPool(int threadNum,
ExecutorService executorService) |
Modifier and Type | Method and Description |
---|---|
void |
execute(Runnable runnable) |
int |
getThreadAlive() |
int |
getThreadNum() |
boolean |
isShutdown() |
void |
setExecutorService(ExecutorService executorService) |
void |
shutdown() |
public CountableThreadPool(int threadNum)
public CountableThreadPool(int threadNum, ExecutorService executorService)
public void setExecutorService(ExecutorService executorService)
public int getThreadAlive()
public int getThreadNum()
public void execute(Runnable runnable)
public boolean isShutdown()
public void shutdown()
Copyright © 2017. All rights reserved.