liron aravot has posted comments on this change.

Change subject: core: Adding support for completion service for ThreadPoolUtil
......................................................................


Patch Set 1: (1 inline comment)

....................................................
File 
backend/manager/modules/utils/src/main/java/org/ovirt/engine/core/utils/threadpool/ThreadPoolUtil.java
Line 87:      * concurrently, and use a blocking queue like interface to get 
the tasks
Line 88:      * @param tasks collection of tasks (callable objects) to submit
Line 89:      * @return
Line 90:      */
Line 91:     public static <V> ExecutorCompletionService<V> 
getCompletionService(Collection<Callable<V>> tasks) {
OPTIONAL - as it's an infrastractural class that will be used by others, I'd 
consider having this method to get also a Iterable<Runnable> as 
ExecutorCompletionService supports it and it may be useful.
Line 92:          ExecutorCompletionService<V> ecs =  getCompletionService();
Line 93:          if (tasks == null) {
Line 94:              return ecs;
Line 95:          }


--
To view, visit http://gerrit.ovirt.org/10439
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: comment
Gerrit-Change-Id: If806302ecf028a5db1c9726a407a1643b5c000b6
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Yair Zaslavsky <yzasl...@redhat.com>
Gerrit-Reviewer: Eli Mesika <emes...@redhat.com>
Gerrit-Reviewer: Liron Aravot <lara...@redhat.com>
Gerrit-Reviewer: Moti Asayag <masa...@redhat.com>
Gerrit-Reviewer: Yair Zaslavsky <yzasl...@redhat.com>
Gerrit-Reviewer: liron aravot <liron.ara...@gmail.com>
_______________________________________________
Engine-patches mailing list
Engine-patches@ovirt.org
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to