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

    Modifier and Type
    Method
    Description
    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.
     
  • Method Details

    • getDescription

      String getDescription()
      Returns:
      the description of this Task
    • execute

      T execute(org.springframework.context.support.GenericApplicationContext applicationContext) throws Exception
      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
      Throws:
      Exception