Interface BeverageSequenceListener

All Superinterfaces:
BeveragePipelineListener

public interface BeverageSequenceListener extends 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 Details

    • onBeverageSequenceBuild

      void onBeverageSequenceBuild(BeverageNozzlePipeline pipeline, BeveragePourSequence seq)
      Called right before a BeveragePourSequence is converted to a future that starts the pour. Allows the callback to influence the volume that gets poured.
      Parameters:
      pipeline - the pipeline generating the event
      seq - the sequence being poured