Scheduled task using timer
- From: cksanjose <cksanjose@xxxxxxxxx>
- Date: Wed, 31 Oct 2007 12:00:42 -0700
I have a standalone application that is scheduled to run every 15
minutes. I'm using the Timer class for scheduling. When it starts
running, it checks a table to see if there's any task that is waiting
to be processed. It is possible that one of these tasks will run for
about 3 hours. Does it wait for this task to finish before it checks
again if there's another task to perform? Should I use
"scheduleAtFixedRate" instead of the "schedule" method so that it
checks for a task every 15 minutes regardless if there's a task
running? What I would like is for the application to check every 15
minutes and process any task that is waiting.
Thanks for any help.
Cesar
.
- Follow-Ups:
- Re: Scheduled task using timer
- From: Roedy Green
- Re: Scheduled task using timer
- Prev by Date: Re: Great SWT Program
- Next by Date: Java technologies
- Previous by thread: eclipse crash in winXP
- Next by thread: Re: Scheduled task using timer
- Index(es):
Relevant Pages
|