jdk/src/share/classes/java/util/concurrent/ExecutorCompletionService.java
changeset 21278 ef8a3a2a72f2
parent 9242 ef138d47df58
equal deleted inserted replaced
21277:bd380b80f9ea 21278:ef8a3a2a72f2
   159      *
   159      *
   160      * @param executor the executor to use
   160      * @param executor the executor to use
   161      * @param completionQueue the queue to use as the completion queue
   161      * @param completionQueue the queue to use as the completion queue
   162      *        normally one dedicated for use by this service. This
   162      *        normally one dedicated for use by this service. This
   163      *        queue is treated as unbounded -- failed attempted
   163      *        queue is treated as unbounded -- failed attempted
   164      *        {@code Queue.add} operations for completed taskes cause
   164      *        {@code Queue.add} operations for completed tasks cause
   165      *        them not to be retrievable.
   165      *        them not to be retrievable.
   166      * @throws NullPointerException if executor or completionQueue are {@code null}
   166      * @throws NullPointerException if executor or completionQueue are {@code null}
   167      */
   167      */
   168     public ExecutorCompletionService(Executor executor,
   168     public ExecutorCompletionService(Executor executor,
   169                                      BlockingQueue<Future<V>> completionQueue) {
   169                                      BlockingQueue<Future<V>> completionQueue) {