11 |
|
* Implementors define a single method with no arguments called |
12 |
|
* <tt>call</tt>. |
13 |
|
* |
14 |
< |
* <p>The <tt>Callable</tt> interface is similar to {@link Runnable}, |
15 |
< |
* in that both are designed for classes whose instances are |
16 |
< |
* potentially executed by another thread. A <tt>Runnable</tt>, |
17 |
< |
* however, does not return a result and cannot throw a checked |
18 |
< |
* exception. |
14 |
> |
* <p>The <tt>Callable</tt> interface is similar to {@link |
15 |
> |
* java.lang.Runnable}, in that both are designed for classes whose |
16 |
> |
* instances are potentially executed by another thread. A |
17 |
> |
* <tt>Runnable</tt>, however, does not return a result and cannot |
18 |
> |
* throw a checked exception. |
19 |
|
* |
20 |
– |
|
21 |
– |
* @since 1.5 |
20 |
|
* @see Executor |
21 |
|
* @see FutureTask |
22 |
< |
* |
25 |
< |
* @spec JSR-166 |
26 |
< |
* @revised $Date$ |
27 |
< |
* @editor $Author$ |
22 |
> |
* @since 1.5 |
23 |
|
* @author Doug Lea |
24 |
|
*/ |
25 |
|
public interface Callable<V> { |