Interface PumpOpListener
- All Superinterfaces:
IngredientPipelineListener
A
PumpIntent is constructed from a sequence of PumpOp
operations. This interface allows listeners to receive start and stop
events for every individual PumpOp. To receive events for
the start and stop of the overall intent, use PumpIntentListener.- Since:
- 1.0
- Version:
- 2024-01-08
-
Method Summary
Modifier and TypeMethodDescriptionvoidonPumpOpStart(IngredientNozzlePipeline pipeline, Pump<?> pump, PumpIntent intent, PumpOp op, com.tccc.kos.commons.util.concurrent.future.FutureWork f) Called when aPumpOpis about to start.voidonPumpOpStop(IngredientNozzlePipeline pipeline, Pump<?> pump, PumpIntent intent, PumpOp op, com.tccc.kos.commons.util.concurrent.future.FutureWork f) Called when aPumpOpis done.
-
Method Details
-
onPumpOpStart
void onPumpOpStart(IngredientNozzlePipeline pipeline, Pump<?> pump, PumpIntent intent, PumpOp op, com.tccc.kos.commons.util.concurrent.future.FutureWork f) Called when aPumpOpis about to start.- Parameters:
pipeline- the pipeline generating the eventpump- the pump performing the intentintent- the intent containing thePumpOpop- the pump opf- the associated future
-
onPumpOpStop
void onPumpOpStop(IngredientNozzlePipeline pipeline, Pump<?> pump, PumpIntent intent, PumpOp op, com.tccc.kos.commons.util.concurrent.future.FutureWork f) Called when aPumpOpis done. The end state of the future indicates whether the op was successful or not.- Parameters:
pipeline- the pipeline generating the eventpump- the pump performing the intentintent- the intent being performedop- the pump opf- the associated future
-