@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
InterruptedExceptionpublic Future<V> poll(long timeout, TimeUnit unit) throws InterruptedException
InterruptedExceptionpublic void cancelAll(boolean interrupt)
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.