@PublicAPI public class CompositeWorkUnit extends java.lang.Object implements WorkUnit
Modifier and Type | Field and Description |
---|---|
protected WorkUnit[] |
workUnits
The array of work units.
|
Constructor and Description |
---|
CompositeWorkUnit()
Constructor.
|
CompositeWorkUnit(WorkUnit[] workUnits)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
call()
Performs the work unit tasks in a linear fashion, one after the other.
|
void |
setInput(java.lang.Object obj)
Sets the input in each work unit.
|
void |
setWorkUnits(WorkUnit[] workUnits)
Sets the work units.
|
protected WorkUnit[] workUnits
public CompositeWorkUnit()
setWorkUnits(chemaxon.util.concurrent.WorkUnit[])
.public CompositeWorkUnit(WorkUnit[] workUnits)
workUnits
- the work unitspublic void setWorkUnits(WorkUnit[] workUnits)
workUnits
- the work unitspublic void setInput(java.lang.Object obj) throws java.util.concurrent.ExecutionException
public java.lang.Object call() throws java.lang.Exception
call
in interface java.util.concurrent.Callable
java.lang.Exception