Package org.apache.pekko.stream.stage
Class GraphStageLogic.ConditionalTerminateInput
java.lang.Object
org.apache.pekko.stream.stage.GraphStageLogic.ConditionalTerminateInput
- All Implemented Interfaces:
InHandler
- Enclosing class:
- GraphStageLogic
Input 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 TypeMethodDescriptionvoidonPush()Called when the input port has a new element available.voidCalled when the input port is finished.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.pekko.stream.stage.InHandler
onUpstreamFailure
-
Constructor Details
-
ConditionalTerminateInput
-
-
Method Details
-
onPush
public void onPush()Description copied from interface:InHandlerCalled when the input port has a new element available. The actual element can be retrieved via theGraphStageLogic.grabmethod. -
onUpstreamFinish
public void onUpstreamFinish()Description copied from interface:InHandlerCalled when the input port is finished. After this callback no other callbacks will be called for this port.- Specified by:
onUpstreamFinishin interfaceInHandler
-