public interface java.util.concurrent
RunnableFuture<V>


Show All Login
Java SE 6
  
Implements: Runnable, Future
Implemented by: FutureTask, RunnableScheduledFuture, SwingWorker
Details
A Future that is Runnable. Successful execution of the run method causes completion of the Future and allows access to its results.
since1.6
VThe result type returned by this Future's get method
See also java.util.concurrent.FutureTask, java.util.concurrent.Executor

Methods
public void run()
Sets this Future to the result of its computation unless it has been cancelled.