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>
A
Task that just passes the provided value straight through without any autowiring or invocation
Created by Navid Mitchell on 3/19/20-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.kinotic.continuum.grind.internal.api.AbstractTask
getDescription
-
Constructor Details
-
ValueTask
-
ValueTask
-
-
Method Details
-
execute
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
-