Closed thomaszhouan closed 7 years ago
Spring @Scheduled
only works for cron.fixedDelay
and fixedRate
do not work for callback because it will do the loop again and again.
Bildschirmfoto 2017-10-29 um 8.22.48 PM.PDF
It seems that ScheduledExecutorService
is the best implementation way for delay a method I can find.
Heroku server is using UTC time, but we can config it by 'heroku config:add TZ="Asia/Hong_Kong"'. Need to be careful when setting the cron expression.
Time zone can be set using zone
field in @Scheduled
annotation
Idle
after user not responding for certain time