| 
JavaTM 2 Platform Standard Ed. 5.0  | 
|||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||
| Packages that use Future | |
|---|---|
| java.util.concurrent | Utility classes commonly useful in concurrent programming. | 
| Uses of Future in java.util.concurrent | 
|---|
| Subinterfaces of Future in java.util.concurrent | |
|---|---|
 interface | 
ScheduledFuture<V>
A delayed result-bearing action that can be cancelled.  | 
| Classes in java.util.concurrent that implement Future | |
|---|---|
 class | 
FutureTask<V>
A cancellable asynchronous computation.  | 
| Methods in java.util.concurrent that return Future | ||
|---|---|---|
 Future<V> | 
ExecutorCompletionService.poll()
 | 
|
 Future<V> | 
CompletionService.poll()
Retrieves and removes the Future representing the next completed task or null if none are present.  | 
|
 Future<V> | 
ExecutorCompletionService.poll(long timeout,
     TimeUnit unit)
 | 
|
 Future<V> | 
CompletionService.poll(long timeout,
     TimeUnit unit)
Retrieves and removes the Future representing the next completed task, waiting if necessary up to the specified wait time if none are yet present.  | 
|
 | 
ScheduledThreadPoolExecutor.submit(Callable<T> task)
 | 
|
 | 
ExecutorService.submit(Callable<T> task)
Submits a value-returning task for execution and returns a Future representing the pending results of the task.  | 
|
 | 
AbstractExecutorService.submit(Callable<T> task)
 | 
|
 Future<V> | 
ExecutorCompletionService.submit(Callable<V> task)
 | 
|
 Future<V> | 
CompletionService.submit(Callable<V> task)
Submits a value-returning task for execution and returns a Future representing the pending results of the task.  | 
|
 Future<?> | 
ScheduledThreadPoolExecutor.submit(Runnable task)
 | 
|
 Future<?> | 
ExecutorService.submit(Runnable task)
Submits a Runnable task for execution and returns a Future representing that task.  | 
|
 Future<?> | 
AbstractExecutorService.submit(Runnable task)
 | 
|
 | 
ScheduledThreadPoolExecutor.submit(Runnable task,
       T result)
 | 
|
 | 
ExecutorService.submit(Runnable task,
       T result)
Submits a Runnable task for execution and returns a Future representing that task that will upon completion return the given result  | 
|
 | 
AbstractExecutorService.submit(Runnable task,
       T result)
 | 
|
 Future<V> | 
ExecutorCompletionService.submit(Runnable task,
       V result)
 | 
|
 Future<V> | 
CompletionService.submit(Runnable task,
       V result)
Submits a Runnable task for execution and returns a Future representing that task.Upon completion, this task may be taken or polled.  | 
|
 Future<V> | 
ExecutorCompletionService.take()
 | 
|
 Future<V> | 
CompletionService.take()
Retrieves and removes the Future representing the next completed task, waiting if none are yet present.  | 
|
| Methods in java.util.concurrent that return types with arguments of type Future | ||
|---|---|---|
 | 
ExecutorService.invokeAll(Collection<Callable<T>> tasks)
Executes the given tasks, returning a list of Futures holding their status and results when all complete.  | 
|
 | 
AbstractExecutorService.invokeAll(Collection<Callable<T>> tasks)
 | 
|
 | 
ExecutorService.invokeAll(Collection<Callable<T>> tasks,
          long timeout,
          TimeUnit unit)
Executes the given tasks, returning a list of Futures holding their status and results when all complete or the timeout expires, whichever happens first.  | 
|
 | 
AbstractExecutorService.invokeAll(Collection<Callable<T>> tasks,
          long timeout,
          TimeUnit unit)
 | 
|
| Constructor parameters in java.util.concurrent with type arguments of type Future | |
|---|---|
ExecutorCompletionService(Executor executor,
                          BlockingQueue<Future<V>> completionQueue)
Creates an ExecutorCompletionService using the supplied executor for base task execution and the supplied queue as its completion queue.  | 
|
  | 
JavaTM 2 Platform Standard Ed. 5.0  | 
|||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||
Copyright 2004 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.