java - How to wait for list of `Future`s created using different `ExecutorServices` -


OK, so I know that the first answer / comment here is "using a executable service Use and use invokeAll ".

That's why I have a list of thread pools ( Executives Services ) and this is a good reason (which I will not bother with people). What I need to do is use callable on each thread pool submit (no problem). Now I have a collection of future examples, each created on a different executable service , and I want to wait for them to complete ( Be able to provide more

Is there an existing class that will do this ( wrap the list of future frequencies and allow the wait until everything is done )? If not, appreciate the tips on a skilled mechanism

For each, with the expiration of received was thinking of calling, but the total time passed for each call has to be calculated.

I have seen this post but instead of wrapping their list, the future is spread out.

Per Louis's comment, which I was looking for

This will make me wait for everyone to complete and then fail

The rules of the law!

Comments

Popular posts from this blog

python - Assemble mpeg file unable to play in mediaplayer -

c# - crystal report failed -

mongodb - CakePHP paginator ignoring order, but only for certain values -