play framework では、ある処理を定期実行できる Jobクラスがありその間隔は以下のように @On()
のカッコ内に書く
import play.jobs.Job;
import play.jobs.On;
@On("*/2****")
public class xxxxx extends Job<Void>
時間間隔の設定にはcrontabの表記が使えて、以下のサイトがめちゃわかりやすい。
※後ろのアスタリスク(*)は間にスペースが必要なことに注意。
crontab コアンド初めて知ったが、めちゃクチャ便利では