Package org.apache.camel.util.concurrent
Class SubmitOrderedCompletionService<V>
- java.lang.Object
-
- org.apache.camel.util.concurrent.SubmitOrderedCompletionService<V>
-
- All Implemented Interfaces:
CompletionService<V>
@Deprecated public class SubmitOrderedCompletionService<V> extends Object implements CompletionService<V>
Deprecated.ACompletionService
that orders the completed tasks in the same order as they where submitted.
-
-
Constructor Summary
Constructors Constructor Description SubmitOrderedCompletionService(Executor executor)
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description Future<V>
poll()
Deprecated.Future<V>
poll(long timeout, TimeUnit unit)
Deprecated.Future<V>
submit(Runnable task, Object result)
Deprecated.Future<V>
submit(Callable<V> task)
Deprecated.Future<V>
take()
Deprecated.void
timeoutTask()
Deprecated.Marks the current task as timeout, which allows you to poll the next tasks which may already have been completed.
-
-
-
Constructor Detail
-
SubmitOrderedCompletionService
public SubmitOrderedCompletionService(Executor executor)
Deprecated.
-
-
Method Detail
-
submit
public Future<V> submit(Callable<V> task)
Deprecated.- Specified by:
submit
in interfaceCompletionService<V>
-
submit
public Future<V> submit(Runnable task, Object result)
Deprecated.- Specified by:
submit
in interfaceCompletionService<V>
-
take
public Future<V> take() throws InterruptedException
Deprecated.- Specified by:
take
in interfaceCompletionService<V>
- Throws:
InterruptedException
-
poll
public Future<V> poll(long timeout, TimeUnit unit) throws InterruptedException
Deprecated.- Specified by:
poll
in interfaceCompletionService<V>
- Throws:
InterruptedException
-
timeoutTask
public void timeoutTask()
Deprecated.Marks the current task as timeout, which allows you to poll the next tasks which may already have been completed.
-
-