KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > java > util > concurrent > RunnableFuture


1 /*
2  * @(#)RunnableFuture.java 1.3 06/01/30
3  *
4  * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
5  * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
6  */

7
8 package java.util.concurrent;
9
10 /**
11  * A {@link Future} that is {@link Runnable}. Successful execution of
12  * the <tt>run</tt> method causes completion of the <tt>Future</tt>
13  * and allows access to its results.
14  * @see FutureTask
15  * @see Executor
16  * @since 1.6
17  * @author Doug Lea
18  * @param <V> The result type returned by this Future's <tt>get</tt> method
19  */

20 public interface RunnableFuture<V> extends Runnable JavaDoc, Future JavaDoc<V> {
21     /**
22      * Sets this Future to the result of its computation
23      * unless it has been cancelled.
24      */

25     void run();
26 }
27
Popular Tags