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
public static class GraphStageLogic.ConditionalTerminateInput extends java.lang.Object implements InHandler
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 Constructor Description ConditionalTerminateInput(scala.Function0<java.lang.Object> predicate)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidonPush()Called when the input port has a new element available.voidonUpstreamFinish()Called when the input port is finished.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.pekko.stream.stage.InHandler
onUpstreamFailure
-
-
-
-
Method Detail
-
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
-
-