public class AsyncCompletionService<V> extends Object
| Constructor and Description |
|---|
AsyncCompletionService(Executor executor,
boolean ordered) |
AsyncCompletionService(Executor executor,
boolean ordered,
ReentrantLock lock) |
| Modifier and Type | Method and Description |
|---|---|
ReentrantLock |
getLock() |
V |
poll() |
V |
poll(long timeout,
TimeUnit unit) |
V |
pollUnordered() |
void |
skip() |
void |
submit(Consumer<Consumer<V>> runner) |
V |
take() |
public AsyncCompletionService(Executor executor, boolean ordered)
public AsyncCompletionService(Executor executor, boolean ordered, ReentrantLock lock)
public ReentrantLock getLock()
public void skip()
public V pollUnordered()
public V poll(long timeout, TimeUnit unit) throws InterruptedException
InterruptedExceptionpublic V take() throws InterruptedException
InterruptedExceptionApache Camel