public abstract class SimultaneousStructural extends StructuralJob<Object> implements Stoppable
childHelper, childStateReflector, destroy, stop, structuralState| Constructor and Description |
|---|
SimultaneousStructural()
Create a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
execute()
Execute this job.
|
ExecutorService |
getExecutorService()
Getter for executor service.
|
boolean |
isJoin()
Should execution wait for all jobs to be executed before returning
to calling code.
|
protected void |
onStop()
Allow sub classes to do something on stop.
|
void |
setExecutorService(ExecutorService executorService)
Set the
ExecutorService. |
void |
setJobs(int index,
Object child)
Add a child job.
|
protected void |
startChildStateReflector()
Start the child state reflector.
|
addStructuralListener, fireDestroyedState, force, getInitialStateOp, getStateChanger, hardReset, iconHelper, isStop, onDestroy, onHardReset, onReset, onSoftReset, removeStructuralListener, run, softReset, stateHandler, stopconfigure, getName, logger, logger, loggerName, save, setName, toStringaddIconListener, addPropertyChangeListener, addStateListener, configure, destroy, firePropertyChange, getArooaSession, iconForId, initialise, lastStateEvent, onConfigured, onInitialised, removeIconListener, removePropertyChangeListener, removeStateListener, save, setArooaContext, setArooaSessionclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddStateListener, lastStateEvent, removeStateListener@Inject public void setExecutorService(ExecutorService executorService)
ExecutorService.Property: executorService
Description: The ExecutorService to use. This will be automatically set by Oddjob.
Required: No.
child - A childpublic ExecutorService getExecutorService()
public void setJobs(int index,
Object child)
Property: jobs
Description: The child jobs.
Required: No, but pointless if missing.
child - A childprotected void execute()
throws InterruptedException,
ExecutionException
StructuralJobexecute in class StructuralJob<Object>InterruptedExceptionExecutionExceptionprotected void onStop()
throws FailedToStopException
StructuralJobonStop in class StructuralJob<Object>FailedToStopExceptionprotected void startChildStateReflector()
StructuralJobstartChildStateReflector in class StructuralJob<Object>public boolean isJoin()
This property is intended to be overridden by sub classes that wish to give that choice to users.