Class BatchTaskScheduler

  • All Implemented Interfaces:
    org.springframework.beans.factory.InitializingBean

    @Component("batchTaskScheduler")
    public class BatchTaskScheduler
    extends AbstractBaseService
    implements org.springframework.beans.factory.InitializingBean
    • Constructor Detail

      • BatchTaskScheduler

        public BatchTaskScheduler()
    • Method Detail

      • executeTasks

        @Scheduled(fixedRateString="${org.openiam.batch.task.execute.time}")
        public void executeTasks()
                          throws InterruptedException
        Use redis lock to prevent another module / node (if any) to perform the same.
        Throws:
        InterruptedException
      • sweep

        @Scheduled(fixedRateString="${org.openiam.batch.task.sweep.time}")
        public void sweep()
                   throws org.springframework.transaction.TransactionException,
                          InterruptedException
        Throws:
        org.springframework.transaction.TransactionException
        InterruptedException
      • afterPropertiesSet

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