Interface TaskRunningService
- All Superinterfaces:
- io.micrometer.core.instrument.binder.MeterBinder
- All Known Implementing Classes:
- TaskRunningServiceImpl
public interface TaskRunningService
extends io.micrometer.core.instrument.binder.MeterBinder
- Author:
- paul, anton
- 
Method SummaryModifier and TypeMethodDescriptiongetSubmittedTask(String taskId) submitTask(T task) <C extends TaskCommand>
 StringsubmitTaskCommand(C taskCommand) Submit a task and track its progress.Methods inherited from interface io.micrometer.core.instrument.binder.MeterBinderbindTo
- 
Method Details- 
getSubmittedTask
- 
getSubmittedTasksCollection<SubmittedTask> getSubmittedTasks()- Returns:
- the submittedTasks
 
- 
submitTask
- 
submitTaskCommandSubmit a task and track its progress. When it is finished, the results can be retrieved with checkResult(). Tasks can be cancelled with cancelTask().- Type Parameters:
- C- task command implementation
- Parameters:
- taskCommand- The command to run. The submissionTime of the task is set after this call. This does not mean that the job has started - it might be queued.
- Returns:
- string
 
 
-