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

Popular posts from this blog

c++ - Do gcc's __float128 floating point numbers take the current rounding mode into account? -

java - the value of local variable is not used -