|
|
|
|
The ExecutorService interface, a sub-interface of Executor,
supplements execute with a similar, but more versatile submit
method. Like execute, submit accepts Runnable
objects, but also accepts Callable objects, which allow the
task to return a value. The submit method returns a Future
object, which is used to retrieve the Callable return value
and to manage the status of both Callable and Runnable
tasks.
Details of |
| The page was last updated February 19, 2008 |