Interface ManagedObjectStartupProcess
-
public interface ManagedObjectStartupProcess
Start upProcessState
registered via aManagedObjectExecuteContext
.- Author:
- Daniel Sagenschneider
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
setConcurrent(boolean isConcurrent)
Flags for theProcessState
to be invoked concurrently.
-
-
-
Method Detail
-
setConcurrent
void setConcurrent(boolean isConcurrent)
Flags for the
ProcessState
to be invoked concurrently.The start up
ProcessState
is executed with on sameThread
building theOfficeFloor
. This allows for the start upProcessState
instances to complete before theOfficeFloor
is opened (unless using anotherTeam
).By flagging concurrent, it allows another
Thread
to concurrently invoke the start upProcessState
. This allows concurrent start up, albeit requiring concurrency handling due to using multipleThread
instances.Furthermore, as order of execution of the start up
ProcessState
instances is based on theOfficeFrame
, it allows any dependency ordering to be resolved. This is because they both can be executed concurrently and co-ordinate themselves together.- Parameters:
isConcurrent
- Flags whether to undertake the start upProcessState
concurrently.
-
-