Interface SimplyComposedPlan<C>

All Superinterfaces:
Plan<C>
All Known Implementing Classes:
BarrierPlan, ConditionalPlan, DynamicNestedPlan, ForEachPlan, ForEachSlicePlan, IfElsePlan, MapContextPlan, NestedPlan, PlanMap, RunnablePlan, SimplePlan

public interface SimplyComposedPlan<C> extends Plan<C>
  • Method Summary

    Modifier and Type
    Method
    Description
    default Plan<C>
    and(Plan<C> plan)
    Create a new plan that executes this plan and the given plan in parallel.
    default Plan<C>
    then(Plan<C> plan)
    Create a new plan that executes this plan, then the given plan.

    Methods inherited from interface dev.engine_room.flywheel.api.task.Plan

    execute, execute
  • Method Details

    • then

      default Plan<C> then(Plan<C> plan)
      Description copied from interface: Plan
      Create a new plan that executes this plan, then the given plan.
      Specified by:
      then in interface Plan<C>
      Parameters:
      plan - The plan to execute after this plan.
      Returns:
      The composed plan.
    • and

      default Plan<C> and(Plan<C> plan)
      Description copied from interface: Plan
      Create a new plan that executes this plan and the given plan in parallel.
      Specified by:
      and in interface Plan<C>
      Parameters:
      plan - The plan to execute in parallel with this plan.
      Returns:
      The composed plan.