Class ExecutionGroup
java.lang.Object
com.complexible.common.util.concurrent.ExecutionGroup
A very light-weight utility class to make it easier to run a set of tasks together and wait until all those jobs end.
The tasks can be run concurrently or sequentially depending on what kind of group has been created.
- Since:
- 0.9
- Version:
- 2.0
- Author:
- Evren Sirin, Michael Grove
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ExecutionGroupconcurrent(ExecutorService theExecutorService) execute()abstract voidabstract booleanprotected abstract voidperformAdd(Callable<?> theTask) static ExecutionGroup
-
Constructor Details
-
ExecutionGroup
public ExecutionGroup()
-
-
Method Details
-
add
-
addAll
-
addAll
-
performAdd
-
executeAndWait
-
execute
-
isExecuting
public abstract boolean isExecuting() -
concurrent
-
sequential
-