クラス 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()
-
メソッドの概要
修飾子とタイプ メソッド 説明 void
performScheduledSessionClose()
void
performScheduledTweetDailyReport()
void
performScheduledTweetGreeting()
void
performScheduledTweetIntroduce()
void
performScheduledTweetPr()
TwitterBot
twitterBot()
Registers the instance ofTwitterBot
as bean.
-
コンストラクタの詳細
-
BatchJobConfiguration
public BatchJobConfiguration()
-
-
メソッドの詳細
-
twitterBot
Registers the instance ofTwitterBot
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
-