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, stop
configure, getName, logger, logger, loggerName, save, setName, toString
addIconListener, addPropertyChangeListener, addStateListener, configure, destroy, firePropertyChange, getArooaSession, iconForId, initialise, lastStateEvent, onConfigured, onInitialised, removeIconListener, removePropertyChangeListener, removeStateListener, save, setArooaContext, setArooaSession
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
addStateListener, 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
StructuralJob
execute
in class StructuralJob<Object>
InterruptedException
ExecutionException
protected void onStop() throws FailedToStopException
StructuralJob
onStop
in class StructuralJob<Object>
FailedToStopException
protected void startChildStateReflector()
StructuralJob
startChildStateReflector
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.