Class BeveragePumpEventInitiator

java.lang.Object
com.tccc.kos.ext.dispense.pipeline.beverage.BeveragePumpEventInitiator

public class BeveragePumpEventInitiator extends Object
Container passed to BeveragePourEngine.buildFuture() in order to capture the pumps used by the pour. This list is used to generate pump lifecycle events for the pour.

It is critical to populate this with the list of pumps actually used by the beverage pour in order for all pump lifecycle events to work properly. It is also critical to set the pumps in this container before they actually start to pour so that the lifecycle events match physical events.

Since:
1.6
Version:
2025-02-6
  • Constructor Details

    • BeveragePumpEventInitiator

      public BeveragePumpEventInitiator()
  • Method Details

    • setPumps

      public void setPumps(Collection<? extends Pump<?>> pumps)
      Called to set the list of pumps used by the pour. This can only be called once and will cause lifecycle events for the pumps to be generated.

      This must be called before the pour actually starts in order for the lifecycle events to be effective.