public static class PoolManager.Pool extends Object
限定符和类型 | 方法和说明 |
---|---|
void |
close(boolean shutDownNow) |
ExecutorService |
getExecutorService() |
String |
getName() |
boolean |
isShutdown() |
boolean |
isTerminated() |
boolean |
isThreadPoolClose() |
void |
setExecutorService(ExecutorService executorService) |
void |
setName(String name) |
void |
setThreadPoolClose(boolean threadPoolClose) |
<T> Future<T> |
submit(Callable<T> task) |
Future |
submit(Runnable task) |
<T> Future<T> |
submit(Runnable task,
T result) |
public void close(boolean shutDownNow)
public boolean isTerminated()
public boolean isShutdown()
public ExecutorService getExecutorService()
public void setExecutorService(ExecutorService executorService)
public boolean isThreadPoolClose()
public void setThreadPoolClose(boolean threadPoolClose)
public String getName()
public void setName(String name)