Reputation: 6828
I have a set of task which must be completed within a certain time, interrupt them otherwise. In particular uploads the same file on different Servers through FTPClient
class.
I thought that the CompletionService
was the best solution for my problem, but the only problem is that the timeout used in poll
is renewed at every element returned by the callable task, am I right? Sorry if I'm not, it's the first time that I use this mechanism.
Anyway, this is not what I'm looking for because I want to set an upper bound for the completion of all the submitted task, not an upper bound for the next task completed!
There is any solution/workaround for this problem?
Upvotes: 0
Views: 54