30 |
|
* that sets newly created threads to a known state. |
31 |
|
* <li> Methods that create and return a {@link Callable} |
32 |
|
* out of other closure-like forms, so they can be used |
33 |
< |
* in execution methods requiring <tt>Callable</tt> |
33 |
> |
* in execution methods requiring <tt>Callable</tt>. |
34 |
|
* </ul> |
35 |
|
* |
36 |
|
* @since 1.5 |
317 |
|
|
318 |
|
/** |
319 |
|
* Returns a {@link Callable} object that, when |
320 |
< |
* called, runs the given task and returns <tt>null</tt> |
320 |
> |
* called, runs the given task and returns <tt>null</tt>. |
321 |
|
* @param task the task to run |
322 |
|
* @return a callable object |
323 |
|
* @throws NullPointerException if task null |
330 |
|
|
331 |
|
/** |
332 |
|
* Returns a {@link Callable} object that, when |
333 |
< |
* called, runs the given privileged action and returns its result |
333 |
> |
* called, runs the given privileged action and returns its result. |
334 |
|
* @param action the privileged action to run |
335 |
|
* @return a callable object |
336 |
|
* @throws NullPointerException if action null |
344 |
|
/** |
345 |
|
* Returns a {@link Callable} object that, when |
346 |
|
* called, runs the given privileged exception action and returns |
347 |
< |
* its result |
347 |
> |
* its result. |
348 |
|
* @param action the privileged exception action to run |
349 |
|
* @return a callable object |
350 |
|
* @throws NullPointerException if action null |