java - Schedule a job to run at multiple of 2 seconds i.e 2,4,8,16,32 seconds -


i want schedule job run @ multiple of 2 seconds, 2,4,8,16,32 seconds. second fire should happen after 2 seconds of completion of first fire, third fire should happen after 4 seconds of completion of second fire , on. next fire based on status previous fire, based on decided whether need trigger next fire or not. can tell me how can use quartz scheduler achieve this?

if use simpletrigger.withintervalinseconds(2) runs job after every 2 seconds want time interval should increased multiple of 2 in every firing.

of course have read documentation

you have track job fire sequence (first fire, second fire,etc) , previous job execution status. refer documentation examples answer there imho.


Comments

Popular posts from this blog

resizing Telegram inline keyboard -

command line - How can a Python program background itself? -

php - "cURL error 28: Resolving timed out" on Wordpress on Azure App Service on Linux -