91 |
|
* executor for base task execution and a |
92 |
|
* {@link LinkedBlockingQueue} as a completion queue. |
93 |
|
* @param executor the executor to use |
94 |
< |
8 @throws NullPointerException if executor is <tt>null</tt> |
94 |
> |
* @throws NullPointerException if executor is <tt>null</tt> |
95 |
|
*/ |
96 |
|
public ExecutorCompletionService(Executor executor) { |
97 |
|
if (executor == null) |
107 |
|
* @param executor the executor to use |
108 |
|
* @param completionQueue the queue to use as the completion queue |
109 |
|
* normally one dedicated for use by this service |
110 |
< |
8 @throws NullPointerException if executor or completionQueue are <tt>null</tt> |
110 |
> |
* @throws NullPointerException if executor or completionQueue are <tt>null</tt> |
111 |
|
*/ |
112 |
|
public ExecutorCompletionService(Executor executor, |
113 |
|
BlockingQueue<Future<V>> completionQueue) { |