@InterfaceAudience.Private public class BoundedCompletionService<V> extends Object
Constructor and Description |
---|
BoundedCompletionService(Executor executor,
int maxTasks) |
public BoundedCompletionService(Executor executor, int maxTasks)
public Future<V> take() throws InterruptedException
InterruptedException
public Future<V> poll(long timeout, TimeUnit unit) throws InterruptedException
InterruptedException
public void cancelAll(boolean interrupt)