Understanding the CEI sequential implementation

The CEI provides an alternative implementation which uses a sequential approach to execute work. This approach is a fallback mechanism which helps debug Work implementations. The choice between concurrent and sequential implementation is configuration-driven.

The following class diagram shows the classes that are required to support an implementation of the CEI API that launches the work instances sequentially:

A class diagram to show the required classes that support a degenerate implementation of the CEI API that launches the work instances sequentially.

The SequentialWorkManagerBean plays both the roles of the work manager and work processor. Schedule calls only create work item instances and the wait calls use the collection of work items passed in to run the work instances one by one in a loop.