February 2014
Beginner
1248 pages
62h 25m
English
• The Callable (p. 1030) interface (of package java.util.concurrent) declares a single method named call that allows a task to return a value.
• ExecutorService method submit (p. 1030) executes a Callable passed in as its argument. Method submit returns an object of type Future (of package java.util.concurrent) that represents the future result of the executing Callable.
• Interface Future (p. 1030) declares method get to return the result of the Callable. The interface also provides methods that enable you to cancel a Callable’s execution, determine whether the Callable was cancelled and determine whether the Callable completed its task.
• Java SE 8 introduces a new CompletableFuture ...
Read now
Unlock full access