org.eclipse.net4j.util.concurrent
Class ParallelRunner
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractList<E>
java.util.ArrayList<Runnable>
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
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 |
ParallelRunner
public ParallelRunner()
ParallelRunner
public ParallelRunner(Collection<? extends Runnable> c)
ParallelRunner
public ParallelRunner(int initialCapacity)
run
public void run(ExecutorService executorService,
long timeout)
throws InterruptedException
- Throws:
InterruptedException
Copyright (c) 2011, 2012 Eike Stepper (Berlin, Germany) and others.