クラス BatchJobConfiguration

java.lang.Object
org.thinkit.bot.twitter.batch.config.BatchJobConfiguration

@Configuration
@EnableScheduling
public class BatchJobConfiguration
extends Object
The class that manages the batch job configuration of Twitter bot.
導入されたバージョン:
1.0.0
  • コンストラクタの詳細

    • BatchJobConfiguration

      public BatchJobConfiguration()
  • メソッドの詳細

    • twitterBot

      @Bean public TwitterBot twitterBot()
      Registers the instance of TwitterBot as bean.
      戻り値:
      The instance of TwitterBot
    • performScheduledTweetGreeting

      @Scheduled(cron="${spring.batch.schedule.cron.tweet.greeting}", zone="${spring.batch.schedule.timezone}") public void performScheduledTweetGreeting() throws Exception
      例外:
      Exception
    • performScheduledTweetDailyReport

      @Scheduled(cron="${spring.batch.schedule.cron.tweet.report}", zone="${spring.batch.schedule.timezone}") public void performScheduledTweetDailyReport() throws Exception
      例外:
      Exception
    • performScheduledTweetIntroduce

      @Scheduled(cron="${spring.batch.schedule.cron.tweet.introduce}", zone="${spring.batch.schedule.timezone}") public void performScheduledTweetIntroduce() throws Exception
      例外:
      Exception
    • performScheduledTweetPr

      @Scheduled(cron="${spring.batch.schedule.cron.tweet.pr}", zone="${spring.batch.schedule.timezone}") public void performScheduledTweetPr() throws Exception
      例外:
      Exception
    • performScheduledSessionClose

      @Scheduled(cron="${spring.batch.schedule.cron.session.close}", zone="${spring.batch.schedule.timezone}") public void performScheduledSessionClose() throws Exception
      例外:
      Exception