public interface TaskMasterProvider
| Modifier and Type | Method and Description |
|---|---|
void |
shutdown()
Initiates an orderly shutdown in which previously submitted tasks are executed, but no new tasks will be
accepted.
|
void |
shutdownNow()
Attempts to stop all actively executing tasks, halts the processing of waiting tasks.
|
<T> TaskFuture<T> |
submit(Runnable task,
T result)
Submits a Runnable task for execution and returns a Future representing that task.
|
<T> TaskFuture<T> |
submit(Runnable task,
T result,
String pool)
Submits a Runnable task for execution and returns a Future representing that task.
|
void shutdown()
SecurityException - if a security manager exists and shutting down this ExecutorService may manipulate
threads that the caller is not permitted to modify because it does not hold permissionvoid shutdownNow()
SecurityException - if a security manager exists and shutting down this ExecutorService may manipulate
threads that the caller is not permitted to modify because it does not hold permission<T> TaskFuture<T> submit(Runnable task, T result) throws RejectedTaskException
Uses the default thread pool.
T - the type for the futuretask - the task to submitresult - the result to returnRejectedTaskException - if the task cannot be scheduled for execution<T> TaskFuture<T> submit(Runnable task, T result, String pool) throws RejectedTaskException
T - the type for the futuretask - the task to submitresult - the result to returnpool - the thread pool name, or null if no poolRejectedTaskException - if the task cannot be scheduled for executionCopyright © 2019. All rights reserved.