Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #34601

Re: future run unlimited

Path csiph.com!eternal-september.org!feeder.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail
From Eric Sosman <esosman@comcast-dot-net.invalid>
Newsgroups comp.lang.java.programmer
Subject Re: future run unlimited
Date Sat, 11 Jun 2016 08:22:00 -0400
Organization A noiseless patient Spider
Lines 23
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>
Mime-Version 1.0
Content-Type text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding 7bit
Injection-Date Sat, 11 Jun 2016 12:22:12 -0000 (UTC)
Injection-Info mx02.eternal-september.org; posting-host="22e5ab429c5a4bb738666b9c52e40d69"; logging-data="3471"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/YT3QoqY169vfMxIWFd8g8"
User-Agent Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.1.1
In-Reply-To <9c131ea1-1a23-4517-8d7a-64a9507f52f4@googlegroups.com>
Cancel-Lock sha1:pd4X0+kQHq40YLawMYiz7edApYU=
Xref csiph.com comp.lang.java.programmer:34601

Show key headers only | View raw


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


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