Multiple parallel tasks in a single service
Peter Penzov
peter.penzov at gmail.com
Mon Mar 9 21:18:22 UTC 2015
Hi All,
I'm interested how I can create 10 Tasks in one Scheduled Service?
private final DataService service = new DataService();
class DataService extends ScheduledService<Void>
{
@Override
protected Task<Void> createTask()
{
return new Task<Void>()
{
@Override
protected Void call() throws Exception
{
// Several tasks
return null;
}
};
}
}
In my case I have 10 charts which I want to update with one
Scheduled Service. So maybe the best solution will be to run the
Scheduled Service with 10 Tasks and update the Charts.
Is there any way to do this?
BR,
Peter
More information about the openjfx-dev
mailing list