Example usage for Java java.util.concurrent CompletionService fields, constructors, methods, implement or subclass
The text is from its open source code.
Future | poll() Retrieves and removes the Future representing the next completed task, or null if none are present. |
Future | 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. |
Future | submit(Callable Submits a value-returning task for execution and returns a Future representing the pending results of the task. |
Future | submit(Runnable task, V result) Submits a Runnable task for execution and returns a Future representing that task. |
Future | take() Retrieves and removes the Future representing the next completed task, waiting if none are yet present. |