[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.technology.equinox] Re: Fire Events Periodically ??

Gunnar Wagenknecht schrieb:
Christian schrieb:
Use a ScheduledExecutorService on start of your Application to schedule the next kick off...

Or better, use the Jobs API. It allows to schedule a job to start in the future.

-Gunnar



So does the ScheduledExecutorService.
I have found Jobs to be nice if you need to show progress in the GUI (and cancelling). Or if you depend on resources to be locked.


Though for simple stuff Jobs api is often Overkill and creating a ScheduledExecutorService for the app will be easier.


Might be a matter of preference. Usually when I need some functionality and the stdlib provides an equally good solution I would choose the java stdlib over other api.


Christian