public interface TaskService
Modifier and Type | Method and Description |
---|---|
void |
addTaskListener(TaskListener l)
Add a listener to receive notifications about the activities of this task service.
|
TaskExecutor<?> |
getExecutor()
Create a
TaskExecutor with a default scope. |
<R> TaskExecutor<R> |
getExecutor(TaskScope<R> scope)
Create a
TaskExecutor for the given TaskScope . |
<R> TaskExecutor<R> |
getExecutor(TaskScope<R> scope,
int priority)
Create a
TaskExecutor for the given TaskScope . |
void |
removeTaskListener(TaskListener l)
Remove a listener previously installed to receive notifications about the activities of this task service.
|
TaskExecutor<?> getExecutor()
TaskExecutor
with a default scope.<R> TaskExecutor<R> getExecutor(TaskScope<R> scope)
TaskExecutor
for the given TaskScope
. Tasks will be executed with the default priority.<R> TaskExecutor<R> getExecutor(TaskScope<R> scope, int priority)
TaskExecutor
for the given TaskScope
. Tasks will be executed with the given priority.void removeTaskListener(TaskListener l)
void addTaskListener(TaskListener l)
Copyright © 2024 levigo holding gmbh. All rights reserved.