R
- the Task
's result typepublic interface TaskExecutor<R>
Task
s. A TaskExecutor deals with
Task
s returning a particular type of result only. TaskExecutors are typically relatively
light-weight wrappers provided by TaskService
s, being merely submission receptacles for
tasks, so that they can be created wherever some kind of asynchronous execution of a particular
kind of task is needed.Modifier and Type | Method and Description |
---|---|
void |
cancelAll()
Cancel all pending tasks for this executor's scope.
|
<T extends R> |
execute(Task<T> task)
Execute the given
Task . |
int |
getPriority()
Return the priority of
Task s submitted using this executor. |
void |
setPriority(int priority)
Set the priority of
Task s submitted using this executor. |
<T extends R> Future<T> execute(Task<T> task)
Task
.task
- the taskFuture
associated with the taskvoid cancelAll()
int getPriority()
Task
s submitted using this executor.void setPriority(int priority)
Task
s submitted using this executor.priority
- the priority to setCopyright © 2024 levigo holding gmbh. All rights reserved.