public interface TaskSupervisor
| Modifier and Type | Method and Description |
|---|---|
void |
submitAsync(Runnable run)
Execute the task asynchronously on separate thread.
|
<T> Future<T> |
submitSync(Callable<T> call)
Execute the task synchronously if possible.
|
<T> Future<T> submitSync(Callable<T> call)
call - the task to be done on server threadvoid submitAsync(Runnable run)
run - the task to be done on separate thread