Package org.apache.hadoop.hbase.util
Class BoundedCompletionService<V>
java.lang.Object
org.apache.hadoop.hbase.util.BoundedCompletionService<V>
A completion service, close to the one available in the JDK 1.7 However, this ones keeps the list
of the future, and allows to cancel them all. This means as well that it can be used for a small
set of tasks only.
Implementation is not Thread safe.
Implementation is not Thread safe.
-
Nested Class Summary
-
Field Summary
-
Constructor Summary
-
Method Summary
-
Field Details
-
executor
-
tasks
-
completed
-
-
Constructor Details
-
BoundedCompletionService
-
-
Method Details
-
submit
-
take
- Throws:
InterruptedException
-
poll
- Throws:
InterruptedException
-
cancelAll
-