1   /*
2    * %W% %E%
3    *
4    * Copyright (c) 2006, Oracle and/or its affiliates. All rights reserved.
5    * ORACLE 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, Future<V> {
21      /**
22       * Sets this Future to the result of its computation
23       * unless it has been cancelled.
24       */
25      void run();
26  }
27