I'm trying to do a Thread.sleep within a @Scheduled(fixedDelay) block, but so far no luck. From what i read and saw, Thread.sleep doesn't work under @Scheduled. I can think of a while loop but i don't feel that confident on that approach. Do you guys have any other suggestions ?
I'm running multiple tasks under this scheduler and I need to put some delays in between some of them. There is no question of splitting these tasks into multiple schedulers. Everything has to be done under the same one.
Thanks