java.util.concurrent

Interface RunnableFuture<V>

All Superinterfaces:
Future<V>, Runnable
Known Subinterfaces:
RunnableScheduledFuture<V>
Known Implementing Classes:
FutureTask<V>

public interface RunnableFuture<V>
extends Runnable, Future<V>

A Future that is Runnable. Successful execution of the run method causes completion of the Future and allows access to its results.
Since:
1.6
See Also:
FutureTask, Executor

Method Summary

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

Methods inherited from interface java.util.concurrent.Future<V>

cancel, get, get, isCancelled, isDone

Methods inherited from interface java.lang.Runnable

run

Method Details

run

public void run()
Sets this Future to the result of its computation unless it has been cancelled.
Specified by:
run in interface Runnable