Package akka.stream.stage
Interface InHandler
-
- All Known Implementing Classes:
AbstractInHandler,AbstractInOutHandler,GraphStageLogic.ConditionalTerminateInput,GraphStageLogic.EagerTerminateInput$,GraphStageLogic.IgnoreTerminateInput$,GraphStageLogic.TotallyIgnorantInput$
public interface InHandlerCollection of callbacks for an input port of aGraphStage
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidonPush()Called when the input port has a new element available.voidonUpstreamFailure(java.lang.Throwable ex)Called when the input port has failed.voidonUpstreamFinish()Called when the input port is finished.
-
-
-
Method Detail
-
onPush
void onPush() throws java.lang.ExceptionCalled when the input port has a new element available. The actual element can be retrieved via theGraphStageLogic.grabmethod.- Throws:
java.lang.Exception
-
onUpstreamFailure
void onUpstreamFailure(java.lang.Throwable ex) throws java.lang.ExceptionCalled when the input port has failed. After this callback no other callbacks will be called for this port.- Throws:
java.lang.Exception
-
onUpstreamFinish
void onUpstreamFinish() throws java.lang.ExceptionCalled when the input port is finished. After this callback no other callbacks will be called for this port.- Throws:
java.lang.Exception
-
-