Class TinyTaskExecServiceImpl

  • All Implemented Interfaces:
    pro.fessional.wings.tiny.task.service.TinyTaskExecService

    @Service()@ConditionalWingsEnabled() 
    public class TinyTaskExecServiceImpl
     implements TinyTaskExecService
                        
    Since:

    2022-12-21

    Author:

    trydofor

    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Constructor Detail

      • TinyTaskExecServiceImpl

        TinyTaskExecServiceImpl()
    • Method Detail

      • launch

         boolean launch(long id)

        launch a task

      • force

         boolean force(long id)

        Force launch a task without scheduling

      • cancel

         boolean cancel(long id)

        Cancel a task. If the task does not exist, consider it as successful. When the application restarts or relaunches, the task should be restored.

      • setAppName

        @Value(value = "${spring.application.name}") void setAppName(String appName)
      • setWinTaskDefineDao

        @Autowired() void setWinTaskDefineDao(WinTaskDefineDao winTaskDefineDao)
      • setWinTaskResultDao

        @Autowired() void setWinTaskResultDao(WinTaskResultDao winTaskResultDao)
      • setLightIdService

        @Autowired() void setLightIdService(LightIdService lightIdService)
      • setJournalService

        @Autowired() void setJournalService(JournalService journalService)