[concurrency-interest] ExecutorCompletionService for scheduled task

Hanson Char hanson.char at gmail.com
Sun Aug 13 02:56:47 EDT 2006


I am not sure if the existing ExecutorCompletionService can be nicely
fitted here.  What we want is a scheduled close operation to be
initiated on each open session after m seconds delay, and abort
regardless after a total of n seconds, even if some of these close
operations haven't started or finished, where n > m.

ExecutorCompletionService.submit() allows some tasks to be submitted
for execution, but there doesn't exist something like
ExecutorCompletionService.schedule() that would take a delay

Thoughts ?

Hanson Char

More information about the Concurrency-interest mailing list