public class TimeLimitedParallelRunner extends Object
Constructor and Description |
---|
TimeLimitedParallelRunner(Iterable<? extends Runnable> tasks,
ExecutorService executor,
long timeoutInMs) |
Modifier and Type | Method and Description |
---|---|
Collection<Runnable> |
getCompletedTasks() |
Collection<Runnable> |
getUnfinishedTasks() |
void |
runAllWithTimeOut() |
public TimeLimitedParallelRunner(Iterable<? extends Runnable> tasks, ExecutorService executor, long timeoutInMs)
public void runAllWithTimeOut()
public Collection<Runnable> getCompletedTasks()
public Collection<Runnable> getUnfinishedTasks()
Copyright © 2019. All rights reserved.