API Overview API Index Package Overview Direct link to this page
JDK 1.6
  java.util.concurrent. CompletionService View Source
Author(s)
Since
Version
Serial
Hierarchy
 CompletionService
Subinterfaces
Description
public interface CompletionService
  A service that decouples the production of new asynchronous tasks from the consumption of the results of completed tasks.
See also:   
Methods
Hide/Show inherited methods
public Future< V> poll ()
  Retrieves and removes the Future representing the next completed task or null if none are present.
public Future< V> poll (long timeout, TimeUnit unit) throws InterruptedException
  Retrieves and removes the Future representing the next completed task, waiting if necessary up to the specified wait time if none are yet present.
public Future< V> submit (Callable< V> task)
  Submits a value-returning task for execution and returns a Future representing the pending results of the task.
public Future< V> submit (Runnable task, V result)
  Submits a Runnable task for execution and returns a Future representing that task.
public Future< V> take () throws InterruptedException
  Retrieves and removes the Future representing the next completed task, waiting if none are yet present.
Fields
Hide/Show inherited fields
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar