Package org.scijava.task
Interface TaskService
-
- All Superinterfaces:
Comparable<Prioritized>,Contextual,Disposable,HasPluginInfo,Identifiable,Initializable,Locatable,Logged,Prioritized,RichPlugin,SciJavaPlugin,SciJavaService,Service,Versioned
- All Known Implementing Classes:
DefaultTaskService
public interface TaskService extends SciJavaService
Service for working withTasks.- Author:
- Curtis Rueden
- See Also:
Task
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description TaskcreateTask(String name)Creates a new, emptyTask.-
Methods inherited from interface org.scijava.Contextual
context, getContext, setContext
-
Methods inherited from interface org.scijava.Disposable
dispose
-
Methods inherited from interface org.scijava.plugin.HasPluginInfo
getInfo, setInfo
-
Methods inherited from interface org.scijava.Locatable
getLocation
-
Methods inherited from interface org.scijava.Prioritized
compareTo, getPriority, setPriority
-
Methods inherited from interface org.scijava.plugin.RichPlugin
getIdentifier, log
-
Methods inherited from interface org.scijava.service.Service
initialize, registerEventHandlers
-
Methods inherited from interface org.scijava.Versioned
getVersion
-
-
-
-
Method Detail
-
createTask
Task createTask(String name)
Creates a new, emptyTask. It is the responsibility of the caller to then launch the task via theTask.run(Runnable)method.- Parameters:
name- The task's name, to differentiate it from others.- Returns:
- A newly created task which awaits execution.
-
-