Class MultiplexingCompletionService<K,​V>

  • Type Parameters:
    K - key type
    V - return type of tasks that are to be submitted

    public final class MultiplexingCompletionService<K,​V>
    extends Object
    A MultiplexingCompletionService is much like a ExecutorCompletionService, but supports multiple delegate ExecutorServices feeding in to a single shared BlockingQueue. poll() operations will retrieve the results of computations that are done first (regardless of which actual underlying executor service they may have been scheduled on). Maintaining separate executors may see application in improving monitoring and bounding of thread pools that have several distinct use cases.