Package org.apache.pekko.stream.stage
Interface InHandler
- All Known Implementing Classes:
AbstractInHandler,AbstractInOutHandler,GraphStageLogic.ConditionalTerminateInput,GraphStageLogic.EagerTerminateInput$,GraphStageLogic.IgnoreTerminateInput$,GraphStageLogic.TotallyIgnorantInput$
public interface InHandler
Collection of callbacks for an input port of a
GraphStage-
Method Summary
Modifier and TypeMethodDescriptionvoidonPush()Called when the input port has a new element available.voidCalled when the input port has failed.voidCalled when the input port is finished.
-
Method Details
-
onPush
Called when the input port has a new element available. The actual element can be retrieved via theGraphStageLogic.grabmethod.- Throws:
Exception
-
onUpstreamFailure
Called when the input port has failed. After this callback no other callbacks will be called for this port.- Throws:
Exception
-
onUpstreamFinish
Called when the input port is finished. After this callback no other callbacks will be called for this port.- Throws:
Exception
-