Java Executor in timerange at specific time -
i need call task every x hour in defined time range , repeat every day. idea calculate executions times delay current time , start each in seperated thread via scheduleatfixedrate , rate of 24 hours. has better idea?
regards
you can use library dedicated schedule code: quartz
it use cron
syntax , can schedule job
implementations.
Comments
Post a Comment