public class DefaultThreadPool extends Object implements ThreadPool
| Constructor and Description |
|---|
DefaultThreadPool(String name,
ExecutorService executor) |
| Modifier and Type | Method and Description |
|---|---|
void |
clear() |
ExecutorService |
getExecutor() |
List<Future<?>> |
getFutures() |
String |
getName() |
void |
setExecutor(ExecutorService executor)
Sets an executor.
|
public DefaultThreadPool(String name, ExecutorService executor)
public String getName()
getName in interface ThreadPoolpublic ExecutorService getExecutor()
getExecutor in interface ThreadPoolpublic void setExecutor(ExecutorService executor)
executor - the executor to set.public List<Future<?>> getFutures()
getFutures in interface ThreadPoolpublic void clear()
clear in interface ThreadPoolCopyright © 2016–2020 Softelnet. All rights reserved.