Class TinyTaskServiceImpl
-
- All Implemented Interfaces:
-
pro.fessional.wings.tiny.task.service.TinyTaskService
@Service()@ConditionalWingsEnabled() public class TinyTaskServiceImpl implements TinyTaskService
- Since:
2022-12-13
trydofor
-
-
Constructor Summary
Constructors Constructor Description TinyTaskServiceImpl()
-
Method Summary
Modifier and Type Method Description ThreadPoolTaskSchedulerreferScheduler(boolean fast)Get the internal ThreadPoolTaskScheduler Set<TinyTaskService.Task>schedule(@NotNull() Object taskerBean)Take all the methods annotated with TinyTask inside the taskerBean, initialize them as tasks, and execute them. TinyTaskService.Taskschedule(@NotNull() Object taskerBean, @NotNull() Method taskerCall, @Nullable() Object taskerPara)Take all the methods annotated with TinyTask inside the taskerBean, initialize them as tasks, and execute them. voidsetTinyTaskConfService(TinyTaskConfService tinyTaskConfService)voidsetTinyTaskExecService(TinyTaskExecService tinyTaskExecService)-
-
Method Detail
-
referScheduler
@NotNull() ThreadPoolTaskScheduler referScheduler(boolean fast)
Get the internal ThreadPoolTaskScheduler
-
schedule
@NotNull() Set<TinyTaskService.Task> schedule(@NotNull() Object taskerBean)
Take all the methods annotated with TinyTask inside the taskerBean, initialize them as tasks, and execute them.
-
schedule
TinyTaskService.Task schedule(@NotNull() Object taskerBean, @NotNull() Method taskerCall, @Nullable() Object taskerPara)
Take all the methods annotated with TinyTask inside the taskerBean, initialize them as tasks, and execute them. taskId == `-1` means not start
-
setTinyTaskConfService
@Autowired() void setTinyTaskConfService(TinyTaskConfService tinyTaskConfService)
-
setTinyTaskExecService
@Autowired() void setTinyTaskExecService(TinyTaskExecService tinyTaskExecService)
-
-
-
-