Class BatchConfiguration

java.lang.Object
com.ecom.winners.configurations.BatchConfiguration

@Configuration public class BatchConfiguration extends Object
  • Constructor Details

    • BatchConfiguration

      public BatchConfiguration()
  • Method Details

    • selectingWeeklyWinner

      @Bean public org.springframework.batch.core.Job selectingWeeklyWinner (org.springframework.batch.core.repository.JobRepository jobRepository, JobCompletionNotificationListener listener, org.springframework.batch.core.Step fetchUserData, org.springframework.batch.core.Step insertUserTransactions, org.springframework.batch.core.Step selectLuckyWinner)
    • runSelectingWeeklyWinnerJob

      @Scheduled(cron="59 23 * * * SUN") public void runSelectingWeeklyWinnerJob() throws Exception
      Throws:
      Exception