What was the good and simple practice in Spring when you want to periodically check for a flag file in a certain directory? i.e. if there is that flag file, pause for 5 seconds and check again; If there is no flag file, then proceed to next step. I think we could use Thread.sleep or Timer, but still want to get some expert answer on any simple solution. Thanks!