Package akka.stream.stage
Interface InHandler
-
- All Known Implementing Classes:
AbstractInHandler,AbstractInOutHandler,ActorGraphInterpreter.ActorOutputBoundary,ByteStringParser.ParsingLogic,DeflateDecompressorBase.DecompressorParsingLogic,GraphStageLogic.ConditionalTerminateInput,GraphStageLogic.EagerTerminateInput$,GraphStageLogic.IgnoreTerminateInput$,GraphStageLogic.TotallyIgnorantInput$
public interface InHandlerCalled when the input port has a new element available. The actual element can be retrieved via the {@link GraphStageLogic.grab()} method.
-
-
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 the {@link GraphStageLogic.grab()} method.- 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.- Parameters:
ex- (undocumented)- 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
-
-