org.eclipse.net4j.util.concurrent
Class ParallelRunner

java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by java.util.AbstractList<E>
          extended by java.util.ArrayList<Runnable>
              extended by org.eclipse.net4j.util.concurrent.ParallelRunner
All Implemented Interfaces:
Serializable, Cloneable, Iterable<Runnable>, Collection<Runnable>, List<Runnable>, RandomAccess

public class ParallelRunner
extends ArrayList<Runnable>

A list of runnables that can be run in parallel.

Since:
3.2
See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
ParallelRunner()
           
ParallelRunner(Collection<? extends Runnable> c)
           
ParallelRunner(int initialCapacity)
           
 
Method Summary
 void run(ExecutorService executorService, long timeout)
           
 
Methods inherited from class java.util.ArrayList
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, get, indexOf, isEmpty, lastIndexOf, remove, remove, removeRange, set, size, toArray, toArray, trimToSize
 
Methods inherited from class java.util.AbstractList
equals, hashCode, iterator, listIterator, listIterator, subList
 
Methods inherited from class java.util.AbstractCollection
containsAll, removeAll, retainAll, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.List
containsAll, equals, hashCode, iterator, listIterator, listIterator, removeAll, retainAll, subList
 

Constructor Detail

ParallelRunner

public ParallelRunner()

ParallelRunner

public ParallelRunner(Collection<? extends Runnable> c)

ParallelRunner

public ParallelRunner(int initialCapacity)
Method Detail

run

public void run(ExecutorService executorService,
                long timeout)
         throws InterruptedException
Throws:
InterruptedException


Copyright (c) 2011, 2012 Eike Stepper (Berlin, Germany) and others.