public class ExecutorAllCompletionService extends Object implements CompletionService<Void>
Constructor and Description |
---|
ExecutorAllCompletionService(Executor executor) |
Modifier and Type | Method and Description |
---|---|
ExecutionException |
getFirstException() |
boolean |
isAllCompleted() |
boolean |
isExceptionThrown() |
Future<Void> |
poll() |
Future<Void> |
poll(long timeout,
TimeUnit unit) |
Future<Void> |
submit(Callable<Void> task) |
Future<Void> |
submit(Runnable task,
Void result) |
Future<Void> |
take() |
void |
waitUntilAllCompleted() |
public ExecutorAllCompletionService(Executor executor)
public Future<Void> submit(Callable<Void> task)
submit
in interface CompletionService<Void>
public Future<Void> submit(Runnable task, Void result)
submit
in interface CompletionService<Void>
public boolean isAllCompleted()
public void waitUntilAllCompleted()
public boolean isExceptionThrown()
public ExecutionException getFirstException()
public Future<Void> take() throws InterruptedException
take
in interface CompletionService<Void>
InterruptedException
public Future<Void> poll()
poll
in interface CompletionService<Void>
public Future<Void> poll(long timeout, TimeUnit unit) throws InterruptedException
poll
in interface CompletionService<Void>
InterruptedException
Copyright © 2014 JBoss, a division of Red Hat. All Rights Reserved.