Class UnitPlan<C>
java.lang.Object
dev.engine_room.flywheel.lib.task.UnitPlan<C>
- All Implemented Interfaces:
Plan<C>
-
Method Summary
Modifier and TypeMethodDescriptionCreate a new plan that executes this plan and the given plan in parallel.voidexecute(TaskExecutor taskExecutor, C context, Runnable onCompletion) Submit this plan for execution.static <C> UnitPlan<C>of()Create a new plan that executes this plan, then the given plan.
-
Method Details
-
of
-
execute
Description copied from interface:PlanSubmit this plan for execution.You must call
onCompletion.run()when the plan has completed execution. -
then
Description copied from interface:PlanCreate a new plan that executes this plan, then the given plan. -
and
Description copied from interface:PlanCreate a new plan that executes this plan and the given plan in parallel.
-