Package akka.stream.stage
Class GraphStageLogic.SubSinkInlet<T>
- java.lang.Object
-
- akka.stream.stage.GraphStageLogic.SubSinkInlet<T>
-
- Enclosing class:
- GraphStageLogic
public class GraphStageLogic.SubSinkInlet<T> extends java.lang.ObjectINTERNAL APIThis allows the dynamic creation of an Inlet for a GraphStage which is connected to a Sink that is available for materialization (e.g. using the
subFusingMaterializer). Completion, cancellation and failure of the parent operator is automatically delegated to instances ofSubSinkInletto avoid resource leaks.To be thread safe this method must only be called from either the constructor of the graph operator during materialization or one of the methods invoked by the graph operator machinery, such as
onPushandonPull.
-
-
Constructor Summary
Constructors Constructor Description SubSinkInlet(java.lang.String name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcancel()voidcancel(java.lang.Throwable cause)Tgrab()booleanhasBeenPulled()booleanisAvailable()booleanisClosed()voidpull()voidsetHandler(InHandler handler)Graph<SinkShape<T>,NotUsed>sink()java.lang.StringtoString()
-
-
-
Method Detail
-
cancel
public void cancel()
-
cancel
public void cancel(java.lang.Throwable cause)
-
grab
public T grab()
-
hasBeenPulled
public boolean hasBeenPulled()
-
isAvailable
public boolean isAvailable()
-
isClosed
public boolean isClosed()
-
pull
public void pull()
-
setHandler
public void setHandler(InHandler handler)
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-