cz.cuni.amis.utils
Class Concurrent

java.lang.Object
  extended by cz.cuni.amis.utils.Concurrent

public class Concurrent
extends java.lang.Object

Utility class for concurrent computations.


Constructor Summary
Concurrent()
           
 
Method Summary
static boolean allAreDone(java.util.Collection<? extends java.util.concurrent.Future> futures)
           
static boolean allAreDone(java.util.concurrent.Future[] futures)
           
static void waitForAll(java.util.concurrent.Future[] futures)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Concurrent

public Concurrent()
Method Detail

waitForAll

public static void waitForAll(java.util.concurrent.Future[] futures)
                       throws java.lang.InterruptedException,
                              java.util.concurrent.ExecutionException
Throws:
java.lang.InterruptedException
java.util.concurrent.ExecutionException

allAreDone

public static boolean allAreDone(java.util.concurrent.Future[] futures)

allAreDone

public static boolean allAreDone(java.util.Collection<? extends java.util.concurrent.Future> futures)