Interface InsertionHolderListener
- All Superinterfaces:
InsertionListener
- All Known Implementing Classes:
AssignmentService
Interface to be notified when insertions and removals occur on holders.
Once inserted into a holder, the container is connected to the associated
pumps and is available for ingredient pouring for the purpose of completing
the insertion process. For example, it may be necessary to prime a pump
or container before it can be used for beverage pouring. These policies
should be implemented as
InsertionFilter to ensure that all
policies are enforced.
Once all filters are passed, another event will be generated for each
individual pump via the InsertionPumpListener.
- Since:
- 1.0
- Version:
- 2023-01-30
-
Method Summary
Modifier and TypeMethodDescriptionvoidonContainerInsertStart(Container container, Holder[] holders) Called when a container is inserted into one or more holders.voidonContainerRemove(Container container, Holder[] holders) Called when a container is removed from holder(s).
-
Method Details
-
onContainerInsertStart
Called when a container is inserted into one or more holders. This is called when the insertion request is first created and the container is linked to the holders. Availability to use the pumps will be subject to filters blocking the insert.- Parameters:
container- the container that was insertedholders- the holders inserted into
-
onContainerRemove
Called when a container is removed from holder(s).- Parameters:
container- the container that was removedholders- the associated holders
-