Package net.ideahut.springboot.task
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidvoidexecute(Collection<Runnable> tasks) setTaskProperties(net.ideahut.springboot.task.TaskProperties taskProperties) voidshutdown()<T> Future<T><T> List<net.ideahut.springboot.task.TaskResult<T>><T> List<net.ideahut.springboot.task.TaskResult<T>>
-
Constructor Details
-
TaskHandlerImpl
public TaskHandlerImpl()
-
-
Method Details
-
setTaskProperties
-
afterPropertiesSet
- Specified by:
afterPropertiesSetin interfaceorg.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:
submitin interfacenet.ideahut.springboot.task.TaskHandler
-
submit
public <T> Map<String,net.ideahut.springboot.task.TaskResult<T>> submit(Map<String, Callable<T>> callables) - Specified by:
submitin interfacenet.ideahut.springboot.task.TaskHandler
-
submit
public <T> List<net.ideahut.springboot.task.TaskResult<T>> submit(List<Callable<T>> callables, Long timeout) - Specified by:
submitin interfacenet.ideahut.springboot.task.TaskHandler
-
submit
- Specified by:
submitin interfacenet.ideahut.springboot.task.TaskHandler
-
submit
- Specified by:
submitin interfacenet.ideahut.springboot.task.TaskHandler
-
execute
- Specified by:
executein interfacenet.ideahut.springboot.task.TaskHandler
-
execute
- Specified by:
executein interfacenet.ideahut.springboot.task.TaskHandler
-
shutdown
public void shutdown()
-