Package org.jppf.client.concurrent
Class JPPFCompletionService<V>
java.lang.Object
org.jppf.client.concurrent.JPPFCompletionService<V>
- Type Parameters:
V- the type of results returned by the submitted tasks.
- All Implemented Interfaces:
CompletionService<V>
A
CompletionService which works specifically with JPPFExecutorServices.- Author:
- Laurent Cohen
-
Constructor Summary
ConstructorsConstructorDescriptionJPPFCompletionService(JPPFExecutorService executor) Initialize this completion service with the specified executor. -
Method Summary
-
Constructor Details
-
JPPFCompletionService
Initialize this completion service with the specified executor.- Parameters:
executor- the executor to which tasks are submitted.
-
-
Method Details
-
submit
- Specified by:
submitin interfaceCompletionService<V>
-
submit
- Specified by:
submitin interfaceCompletionService<V>
-
take
- Specified by:
takein interfaceCompletionService<V>- Throws:
InterruptedException
-
poll
- Specified by:
pollin interfaceCompletionService<V>
-
poll
- Specified by:
pollin interfaceCompletionService<V>- Throws:
InterruptedException
-