Package org.apache.camel.util.concurrent
Class AsyncCompletionService<V>
java.lang.Object
org.apache.camel.util.concurrent.AsyncCompletionService<V>
A completion service that orders the completed tasks in the same order as they where submitted.
-
Constructor Summary
ConstructorDescriptionAsyncCompletionService
(Executor executor, boolean ordered) AsyncCompletionService
(Executor executor, boolean ordered, ReentrantLock lock) AsyncCompletionService
(Executor executor, boolean ordered, ReentrantLock lock, int capacity) -
Method Summary
-
Constructor Details
-
AsyncCompletionService
-
AsyncCompletionService
-
AsyncCompletionService
-
-
Method Details
-
getLock
-
submit
-
skip
-
pollUnordered
-
poll
-
poll
- Throws:
InterruptedException
-
take
- Throws:
InterruptedException
-