Interface BeverageSequenceListener
- All Superinterfaces:
BeveragePipelineListener
Listener when a
BeveragePourSequence is about to be converted
into a pour future. This provides an opportunity for listeners to impact
the sequence before it is converted. This is commonly used to set the
limitVolume of the sequence to override how much of the sequence
can actually be poured. This can be used to implement controlled pour
algorithms that limit the amount poured in a session, independent of
how many pours or beverages the session spans.- Since:
- 1.0
- Version:
- 2024-08-22
-
Method Summary
Modifier and TypeMethodDescriptionvoidonBeverageSequenceBuild(BeverageNozzlePipeline pipeline, BeveragePourSequence seq) Called right before aBeveragePourSequenceis converted to a future that starts the pour.
-
Method Details
-
onBeverageSequenceBuild
Called right before aBeveragePourSequenceis converted to a future that starts the pour. Allows the callback to influence the volume that gets poured.- Parameters:
pipeline- the pipeline generating the eventseq- the sequence being poured
-