Called when the output port has received a pull, and therefore ready to emit an element, i.e.
Called when the output port has received a pull, and therefore ready to emit an element, i.e. GraphStageLogic.push() is now allowed to be called on this port.
Called when the input port has a new element available.
Called when the input port has a new element available. The actual element can be retrieved via the GraphStageLogic.grab() method.
Called when the output port will no longer accept any new elements.
Called when the output port will no longer accept any new elements. After this callback no other callbacks will be called for this port.
Called when the input port has failed.
Called when the input port has failed. After this callback no other callbacks will be called for this port.
Called when the input port is finished.
Called when the input port is finished. After this callback no other callbacks will be called for this port.
Java API: callback combination for output and input ports where termination logic is predefined (completing when upstream completes, failing when upstream fails, completing when downstream cancels).