| Modifier and Type | Method and Description |
|---|---|
static TaskExecutor |
getInstance()
Returns singleton
TaskExecutor instance held |
static <V> Future<V> |
submit(Callable<V> task)
Submit a task to TaskExecutor for execution.
|
static void |
submit(Runnable task)
Submit a task to TaskExecutor for execution.
|
static <T> Future<T> |
submit(Task<T> task)
Submit a task to TaskExecutor for execution.
|
public static TaskExecutor getInstance()
TaskExecutor instance heldpublic static void submit(Runnable task)
task - Runnable to be submitted to this executor for
executionpublic static <T> Future<T> submit(Task<T> task)
Copyright © 2019. All rights reserved.