ExecutorCompletionService

Class ExecutorCompletionService<V>

All Implemented Interfaces:
CompletionService<V>
public class ExecutorCompletionService<V>
extends Object
implements CompletionService<V>

A CompletionService that uses a supplied Executor to execute tasks. This class arranges that submitted tasks are, upon completion, placed on a queue accessible using take. The class is lightweight enough to be suitable for tra