Class StateReflector

All Implemented Interfaces:
Serializable, Runnable, ArooaContextAware, ArooaSessionAware, Forceable, PropertyChangeNotifier, Iconic, LogEnabled, Resettable, Stateful, Stoppable, Structural
Direct Known Subclasses:
AndState, OrState

public abstract class StateReflector extends SimultaneousStructural
Base class for Jobs that are designed purely to reflect the state of their child jobs.
Author:
rob
See Also:
  • Constructor Details

    • StateReflector

      public StateReflector()
  • Method Details

    • stop

      public void stop() throws FailedToStopException
      Description copied from class: StructuralJob
      Implementation for a typical stop.

      This stop implementation doesn't check that the job is executing as stop messages must cascade down the hierarchy to manually started jobs.

      Specified by:
      stop in interface Stoppable
      Overrides:
      stop in class StructuralJob<Object>
      Throws:
      FailedToStopException
    • isJoin

      public boolean isJoin()
      Description copied from class: SimultaneousStructural
      Should execution wait for all jobs to be executed before returning to calling code.

      This property is intended to be overridden by sub classes that wish to give that choice to users.

      Overrides:
      isJoin in class SimultaneousStructural
      Returns:
      true for execution to wait for children. False for completion to be asynchronous.