Class ValueTask<R>
- java.lang.Object
-
- org.kinotic.continuum.grind.internal.api.AbstractTask<R>
-
- org.kinotic.continuum.grind.internal.api.ValueTask<R>
-
- All Implemented Interfaces:
Task<R>
public class ValueTask<R> extends AbstractTask<R>
ATaskthat just passes the provided value straight through without any autowiring or invocation Created by Navid Mitchell on 3/19/20
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Rexecute(org.springframework.context.support.GenericApplicationContext applicationContext)This method needs to perform the logic that actually returns the value created by thisTaskif any.-
Methods inherited from class org.kinotic.continuum.grind.internal.api.AbstractTask
getDescription
-
-
-
-
Method Detail
-
execute
public R execute(org.springframework.context.support.GenericApplicationContext applicationContext)
Description copied from interface:TaskThis 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
-
-