public class ExecutorUtil
extends java.lang.Object
Constructor and Description |
---|
ExecutorUtil(int threadPoolSize) |
Modifier and Type | Method and Description |
---|---|
void |
shutdownNow()
Shutdown the executor service.
|
<T> java.util.concurrent.Future<T> |
submit(java.util.concurrent.Callable<T> call)
Submit the task to be executed asynchronously.
|
public <T> java.util.concurrent.Future<T> submit(java.util.concurrent.Callable<T> call)
T
- the task parametercall
- the method to executeFuture
corresponding to the taskpublic void shutdownNow()