Link to home
Start Free TrialLog in
Avatar of heyday2004
heyday2004

asked on

Check if a file exists every 5 seconds in Spring?

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!
SOLUTION
Avatar of ksivananth
ksivananth
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ASKER CERTIFIED SOLUTION
Avatar of Mick Barry
Mick Barry
Flag of Australia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial