public ExecutorCompletionService (Executor executor)

Creates an ExecutorCompletionService using the supplied executor for base task execution and a LinkedBlockingQueue as a completion queue.

Parameters:
executor    the executor to use

Exceptions:
NullPointerException    if executor is null