214 |
|
* @throws RejectedExecutionException if any task cannot be |
215 |
|
* scheduled for execution |
216 |
|
*/ |
217 |
< |
<T> List<Future<T>> invokeAll(Collection<Callable<T>> tasks) |
217 |
> |
|
218 |
> |
<T> List<Future<T>> invokeAll(Collection<? extends Callable<T>> tasks) |
219 |
|
throws InterruptedException; |
220 |
|
|
221 |
|
/** |
245 |
|
* @throws RejectedExecutionException if any task cannot be scheduled |
246 |
|
* for execution |
247 |
|
*/ |
248 |
< |
<T> List<Future<T>> invokeAll(Collection<Callable<T>> tasks, |
248 |
> |
<T> List<Future<T>> invokeAll(Collection<? extends Callable<T>> tasks, |
249 |
|
long timeout, TimeUnit unit) |
250 |
|
throws InterruptedException; |
251 |
|
|
267 |
|
* @throws RejectedExecutionException if tasks cannot be scheduled |
268 |
|
* for execution |
269 |
|
*/ |
270 |
< |
<T> T invokeAny(Collection<Callable<T>> tasks) |
270 |
> |
<T> T invokeAny(Collection<? extends Callable<T>> tasks) |
271 |
|
throws InterruptedException, ExecutionException; |
272 |
|
|
273 |
|
/** |
292 |
|
* @throws RejectedExecutionException if tasks cannot be scheduled |
293 |
|
* for execution |
294 |
|
*/ |
295 |
< |
<T> T invokeAny(Collection<Callable<T>> tasks, |
295 |
> |
<T> T invokeAny(Collection<? extends Callable<T>> tasks, |
296 |
|
long timeout, TimeUnit unit) |
297 |
|
throws InterruptedException, ExecutionException, TimeoutException; |
298 |
|
} |