Class ValueTask<R>

  • All Implemented Interfaces:
    Task<R>

    public class ValueTask<R>
    extends AbstractTask<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 
      Constructor Description
      ValueTask​(java.lang.String description, R value)  
      ValueTask​(R value)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      R execute​(org.springframework.context.support.GenericApplicationContext applicationContext)
      This method needs to perform the logic that actually returns the value created by this Task if any.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ValueTask

        public ValueTask​(R value)
      • ValueTask

        public ValueTask​(java.lang.String description,
                         R value)
    • Method Detail

      • execute

        public R execute​(org.springframework.context.support.GenericApplicationContext applicationContext)
        Description copied from interface: Task
        This method needs to perform the logic that actually returns the value created by this Task if any.
        Parameters:
        applicationContext - the execution context for this job
        Returns:
        the result of this Task This can be any value or any of the following which will be handled with special consideration. Result can be another Task in this case the Task will be executed and the result will be handled according to these same rules Result can be a JobDefinition in this case the JobDefinition will be executed and all results will be handled according to these rules Result can be a Result object in this case the Result will be returned along with any other Result's during task execution