equal
deleted
inserted
replaced
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) { |