Interface PumpEventListener
- All Superinterfaces:
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 Summary
Modifier and TypeMethodDescriptionvoidonPumpStart(NozzlePipeline pipeline, Pump<?> pump) Called when a pump is started.voidonPumpStop(NozzlePipeline pipeline, Pump<?> pump) Called when a pump is stopped.
-
Method Details
-
onPumpStart
Called when a pump is started.- Parameters:
pipeline- the pipeline starting the pumppump- the pump being started
-
onPumpStop
Called when a pump is stopped.- Parameters:
pipeline- the pipeline stopping the pumpepump- the pump being stopped
-