This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Java in General and the fly likes How to define running interval for Java Window Service Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "How to define running interval for Java Window Service" Watch "How to define running interval for Java Window Service" New topic
Author

How to define running interval for Java Window Service

ram gaurav
Ranch Hand

Joined: Mar 29, 2006
Posts: 208
Hi

I am making Window Service in java.

I have created that and its also working fine.

What i want to do now is that, i want that my service keep on running and will perform some specific action after particular interval of time.

Please help me for this.

Thanks
Gaurav
Paul Sturrock
Bartender

Joined: Apr 14, 2004
Posts: 10336

Have a look at java.util.Timer and java.util.TimerTask.


JavaRanch FAQ HowToAskQuestionsOnJavaRanch
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: How to define running interval for Java Window Service
 
Similar Threads
Pagination & Session Management
Service Status
Taking Memory Usage Periodically
how to use setTimeout function
Cancelling a ScheduledExecutorService