public class GraphStageLogic.SubSinkInlet<T>
extends java.lang.Object
This 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
). Care needs to be taken to cancel this Inlet
when the stage shuts down lest the corresponding Sink be left hanging.
Constructor and Description |
---|
SubSinkInlet(java.lang.String name) |
Modifier and Type | Method and Description |
---|---|
void |
cancel() |
T |
grab() |
boolean |
hasBeenPulled() |
boolean |
isAvailable() |
boolean |
isClosed() |
void |
pull() |
void |
setHandler(InHandler handler) |
Graph<SinkShape<T>,NotUsed> |
sink() |
java.lang.String |
toString() |
public void setHandler(InHandler handler)
public boolean isAvailable()
public boolean isClosed()
public boolean hasBeenPulled()
public T grab()
public void pull()
public void cancel()
public java.lang.String toString()
toString
in class java.lang.Object