[concurrency-interest] Question / Feature Request for ExecutorService

Morgan Conrad morganconrad at yahoo.com
Wed Nov 16 16:31:38 EST 2011


This question came up on StackOverflow.
  
see http://stackoverflow.com/questions/8158500/with-a-java-executorservice-how-do-i-complete-actively-executing-tasks-but-halt

Basically, the request seems reasonable:

"I want to call a command that:  
  a. Completes the currently active task or tasks (like shutdown).
  b. Halts the processing of waiting tasks (like shutdownNow)."

Is there a good way to do this using the existing code?

Sincerely,
Morgan Conrad





More information about the Concurrency-interest mailing list