36 |
|
* @return a Future representing pending completion of the task |
37 |
|
* @throws RejectedExecutionException if task cannot be scheduled |
38 |
|
* for execution |
39 |
< |
* @throws NullPointerException if task null |
39 |
> |
* @throws NullPointerException if task null |
40 |
|
*/ |
41 |
|
Future<V> submit(Callable<V> task); |
42 |
|
|
43 |
|
|
44 |
|
/** |
45 |
< |
* Submits a Runnable task for execution and returns a Future |
45 |
> |
* Submits a Runnable task for execution and returns a Future |
46 |
|
* representing that task. Upon completion, |
47 |
|
* this task may be taken or polled. |
48 |
|
* |
49 |
|
* @param task the task to submit |
50 |
|
* @param result the result to return upon successful completion |
51 |
|
* @return a Future representing pending completion of the task, |
52 |
< |
* and whose <tt>get()</tt> method will return the given result value |
52 |
> |
* and whose <tt>get()</tt> method will return the given result value |
53 |
|
* upon completion |
54 |
|
* @throws RejectedExecutionException if task cannot be scheduled |
55 |
|
* for execution |
56 |
< |
* @throws NullPointerException if task null |
56 |
> |
* @throws NullPointerException if task null |
57 |
|
*/ |
58 |
|
Future<V> submit(Runnable task, V result); |
59 |
|
|