Package org.kinotic.continuum.grind.api
Interface Task<T>
-
- All Known Implementing Classes:
AbstractTask,ClassTask,InstanceTask,NoopTask,ValueTask
public interface Task<T>A general definition of a task that can be executed at some point in the future. Created by Navid Mitchell 🤪 on 3/24/20
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Texecute(org.springframework.context.support.GenericApplicationContext applicationContext)This method needs to perform the logic that actually returns the value created by thisTaskif any.java.lang.StringgetDescription()
-
-
-
Method Detail
-
getDescription
java.lang.String getDescription()
- Returns:
- the description of this
Task
-
execute
T execute(org.springframework.context.support.GenericApplicationContext applicationContext) throws java.lang.Exception
This method needs to perform the logic that actually returns the value created by thisTaskif any.- Parameters:
applicationContext- the execution context for this job- Returns:
- the result of this
TaskThis can be any value or any of the following which will be handled with special consideration. Result can be anotherTaskin this case theTaskwill be executed and the result will be handled according to these same rules Result can be aJobDefinitionin this case theJobDefinitionwill be executed and all results will be handled according to these rules Result can be aResultobject in this case theResultwill be returned along with any otherResult's during task execution - Throws:
java.lang.Exception
-
-