Class TaskHandlerImpl

java.lang.Object
net.ideahut.springboot.task.TaskHandlerImpl
All Implemented Interfaces:
net.ideahut.springboot.task.TaskHandler, org.springframework.beans.factory.InitializingBean

public class TaskHandlerImpl extends Object implements net.ideahut.springboot.task.TaskHandler, org.springframework.beans.factory.InitializingBean
  • Constructor Details

    • TaskHandlerImpl

      public TaskHandlerImpl()
  • Method Details

    • setTaskProperties

      public TaskHandlerImpl setTaskProperties(net.ideahut.springboot.task.TaskProperties taskProperties)
    • afterPropertiesSet

      public void afterPropertiesSet() throws Exception
      Specified by:
      afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
      Throws:
      Exception
    • submit

      public <T> Map<String,net.ideahut.springboot.task.TaskResult<T>> submit(Map<String,Callable<T>> callables, Long timeout)
      Specified by:
      submit in interface net.ideahut.springboot.task.TaskHandler
    • submit

      public <T> Map<String,net.ideahut.springboot.task.TaskResult<T>> submit(Map<String,Callable<T>> callables)
      Specified by:
      submit in interface net.ideahut.springboot.task.TaskHandler
    • submit

      public <T> List<net.ideahut.springboot.task.TaskResult<T>> submit(List<Callable<T>> callables, Long timeout)
      Specified by:
      submit in interface net.ideahut.springboot.task.TaskHandler
    • submit

      public <T> List<net.ideahut.springboot.task.TaskResult<T>> submit(List<Callable<T>> callables)
      Specified by:
      submit in interface net.ideahut.springboot.task.TaskHandler
    • submit

      public <T> Future<T> submit(Callable<T> callable)
      Specified by:
      submit in interface net.ideahut.springboot.task.TaskHandler
    • execute

      public void execute(Collection<Runnable> tasks)
      Specified by:
      execute in interface net.ideahut.springboot.task.TaskHandler
    • execute

      public void execute(Runnable task)
      Specified by:
      execute in interface net.ideahut.springboot.task.TaskHandler
    • shutdown

      public void shutdown()