Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #34601
| From | Eric Sosman <esosman@comcast-dot-net.invalid> |
|---|---|
| Newsgroups | comp.lang.java.programmer |
| Subject | Re: future run unlimited |
| Date | 2016-06-11 08:22 -0400 |
| Organization | A noiseless patient Spider |
| Message-ID | <njgvpk$3cf$1@dont-email.me> (permalink) |
| References | <2b896a25-e53e-4398-b423-fca4d040c3f9@googlegroups.com> <njei6e$si6$1@dont-email.me> <23604b1c-2b12-4af6-af2a-64efde2753a6@googlegroups.com> <njengr$g9d$1@dont-email.me> <9c131ea1-1a23-4517-8d7a-64a9507f52f4@googlegroups.com> |
On 6/10/2016 3:49 PM, Philipp Kraus wrote:
> Am Freitag, 10. Juni 2016 17:48:52 UTC+2 schrieb Eric Sosman:
>> [...]
>> If that's the goal, I think ExecutorCompletionService could help.
>> You would submit all N tasks to the ECS (a one-time "batch" operation),
>> take() each task as it finishes, consume its result, and re-submit.
>
> Yes, I would like to do that, but is there an existing structure
> for the submit - resubmit structure or should I write my own structure?
> Is there an ExecutorService which gets only the Callable list (because it is in
> my case an unmodifiable list) and do the whole wort for me?
I don't know of one.
>[...]
> I have written an global flag, but is there a better way for doing the shutdown
> process?
I cannot answer because I do not know how you measure "better."
--
esosman@comcast-dot-net.invalid
"Don't be afraid of work. Make work afraid of you." -- TLM
Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Find similar | Unroll thread
future run unlimited Philipp Kraus <philipp.kraus.flashpixx@gmail.com> - 2016-06-10 06:30 -0700
Re: future run unlimited Eric Sosman <esosman@comcast-dot-net.invalid> - 2016-06-10 10:17 -0400
Re: future run unlimited Philipp Kraus <philipp.kraus.flashpixx@gmail.com> - 2016-06-10 07:34 -0700
Re: future run unlimited Eric Sosman <esosman@comcast-dot-net.invalid> - 2016-06-10 11:48 -0400
Re: future run unlimited Philipp Kraus <philipp.kraus.flashpixx@gmail.com> - 2016-06-10 12:49 -0700
Re: future run unlimited Eric Sosman <esosman@comcast-dot-net.invalid> - 2016-06-11 08:22 -0400
csiph-web