public class ParallelThreadExecutor
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static boolean |
parallel |
Constructor and Description |
---|
ParallelThreadExecutor(ParallelizableRunnable[] runnables)
In order to have the threads performed in parallel just an Array of ParallelizableRunnables is
passed to the contructor of the ParallelThreadExecutor.
|
ParallelThreadExecutor(ParallelizableRunnable[] runnables,
int latchSize) |
Modifier and Type | Method and Description |
---|---|
void |
execute()
This method will start the processing.
|
boolean |
isShowStatus() |
void |
setShowStatus(boolean showStatus) |
public ParallelThreadExecutor(ParallelizableRunnable[] runnables)
runnables
- the processes to run.public ParallelThreadExecutor(ParallelizableRunnable[] runnables, int latchSize)