File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Beginning Java and the fly likes PERIODIC CHECK Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "PERIODIC CHECK" Watch "PERIODIC CHECK" New topic


Zaafir Barahim
Ranch Hand

Joined: Dec 12, 2006
Posts: 36
java code to do a periodic check and to run the desired code for a periodic interval time
Jeroen T Wenting
Ranch Hand

Joined: Apr 21, 2006
Posts: 1847
something to do something at some time for some duration.

Ulf Dittmer

Joined: Mar 22, 2005
Posts: 42956
I'm not exactly sure what you are asking, but have a look at the java.util.Timer and TimerTask classes.
Paul Sturrock

Joined: Apr 14, 2004
Posts: 10336

I too am not 100% sure what you are asking, but I suspect it can be answered by the classes Ulf mentions above. And in that case, this is not an advanced question, so I'll move this topic to a more appropriate form.

JavaRanch FAQ HowToAskQuestionsOnJavaRanch
I agree. Here's the link: