Interface PumpEventListener

All Superinterfaces:
PumpListener

public interface PumpEventListener extends PumpListener
Listener interface for detecting pump start/stop events. The pipeline triggering the event defines the semantics of the events. The IngredientNozzlePipeline will tend to fire events in real time while BeverageNozzlePipeline defers to the pour engine. It is common for pour engines to fire events at the start and end of the pour and not when the actual pumps physically run.

Pumps are locked before they receive events and locks are at the boundaries of higher level constructs like pump intents or beverage pour sequences. This means that locks tend to align with a transaction while events may occur multiple times within that transaction.

Version:
2024-08-22
  • Method Details

    • onPumpStart

      void onPumpStart(NozzlePipeline pipeline, Pump<?> pump)
      Called when a pump is started.
      Parameters:
      pipeline - the pipeline starting the pump
      pump - the pump being started
    • onPumpStop

      void onPumpStop(NozzlePipeline pipeline, Pump<?> pump)
      Called when a pump is stopped.
      Parameters:
      pipeline - the pipeline stopping the pumpe
      pump - the pump being stopped