Package org.apache.pekko.stream.stage
Class GraphStageLogic.ConditionalTerminateOutput
java.lang.Object
org.apache.pekko.stream.stage.GraphStageLogic.ConditionalTerminateOutput
- All Implemented Interfaces:
OutHandler
- Enclosing class:
- GraphStageLogic
Output handler that terminates the state upon receiving completion if the
given condition holds at that time. The operator fails upon receiving a failure.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidonDownstreamFinish(Throwable cause) Called when the output port will no longer accept any new elements.voidonPull()Called when the output port has received a pull, and therefore ready to emit an element, i.e.
-
Constructor Details
-
ConditionalTerminateOutput
-
-
Method Details
-
onDownstreamFinish
Description copied from interface:OutHandlerCalled when the output port will no longer accept any new elements. After this callback no other callbacks will be called for this port.- Specified by:
onDownstreamFinishin interfaceOutHandler
-
onPull
public void onPull()Description copied from interface:OutHandlerCalled when the output port has received a pull, and therefore ready to emit an element, i.e.GraphStageLogic.pushis now allowed to be called on this port.- Specified by:
onPullin interfaceOutHandler
-